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

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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