forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: giorgio79 on February 16, 2007, 12:05:17 am

Title: sub menu only on a specific page
Post by: giorgio79 on February 16, 2007, 12:05:17 am
Hello Guys,

Would you know a simple way of limiting the SUB_MENU display to certain pages?

Would I have to code them into the appropriate php file?
Cheers,
Gyuri
Title: Re: sub menu only on a specific page
Post by: Joachim Müller on February 16, 2007, 12:12:45 am
No, do it the other way round: add an if/then switch to theme.php that determines which page you're on (by checking for $PHP_SELF) and output the menu only if you're on another page than the one you checked for.
Title: Re: sub menu only on a specific page
Post by: giorgio79 on February 16, 2007, 07:38:56 am
Thanks GauGau!

I appreciate your kind help!

This works like a charm.
Title: Re: sub menu only on a specific page
Post by: leemax on June 23, 2008, 07:38:04 pm
could you give a sample code? pls GauGau