sub menu only on a specific page sub menu only on a specific page
 

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

sub menu only on a specific page

Started by giorgio79, February 16, 2007, 12:05:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

giorgio79

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

Joachim Müller

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.

giorgio79

Thanks GauGau!

I appreciate your kind help!

This works like a charm.

leemax

could you give a sample code? pls GauGau