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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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