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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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