Advanced search  

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]

Pages: [1]   Go Down

Author Topic: sub menu only on a specific page  (Read 3893 times)

0 Members and 1 Guest are viewing this topic.

giorgio79

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 114
sub menu only on a specific page
« on: February 16, 2007, 12:05:17 am »

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
« Last Edit: February 16, 2007, 03:49:43 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: sub menu only on a specific page
« Reply #1 on: February 16, 2007, 12:12:45 am »

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.
Logged

giorgio79

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 114
Re: sub menu only on a specific page
« Reply #2 on: February 16, 2007, 07:38:56 am »

Thanks GauGau!

I appreciate your kind help!

This works like a charm.
Logged

leemax

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: sub menu only on a specific page
« Reply #3 on: June 23, 2008, 07:38:04 pm »

could you give a sample code? pls GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 14 queries.