News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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