coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: TigerClaw on January 29, 2008, 02:04:58 AM

Title: How to show custom header or template only in homepage?
Post by: TigerClaw on January 29, 2008, 02:04:58 AM
Is it possible?
Title: Re: How to show custom header or template only in homepage?
Post by: Joachim Müller on January 29, 2008, 08:01:33 AM
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.
Title: Re: How to show custom header or template only in homepage?
Post by: TigerClaw on January 29, 2008, 01:19:20 PM


if ($cat == 0) {

"content"

                   }


Don't seems to work  :(
Title: Re: How to show custom header or template only in homepage?
Post by: Joachim Müller on January 29, 2008, 05:36:40 PM
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.