How to show custom header or template only in homepage? How to show custom header or template only in homepage?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to show custom header or template only in homepage?

Started by TigerClaw, January 29, 2008, 02:04:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Joachim Müller

What's the "homepage" for you? Do you mean the index page? If yes, then use anycontent.php and add a PHP-driven toggle there that checks the variable $cat. If $cat == 0 then display the special content, otherwise not.

TigerClaw



if ($cat == 0) {

"content"

                   }


Don't seems to work  :(

Joachim Müller

Doesn't work where? What error message do you get (except for the obvious parse error, as the code you posted will of course not work because it isn't valid). It depends where you want to use that piece of code. Post full examples of what you did. Posting a link to your testbed might be a good idea as well.