Jump to content


Is there any way to make a page NOT appear on menu


  • You cannot reply to this topic
6 replies to this topic

#1 xmitchx

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 27 August 2004 - 12:34 AM

Hey,

I like the [[MenuBuilder]] snippet but is there any way to make a certain doc not appear on it?

#2 jaredc

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,193 posts

Posted 27 August 2004 - 12:37 AM

The standard way to do this is to put files you don't want in the menu in folders that aren't published. Perhaps not the most elegant solution, but simple and pretty effective. If you have some other sort of situation that this won't work for, let us know and I'm sure you'll get some chatter.

> Some folder [unpublished]
> --> some page [published]
> --> some other page [published]

The pages in Some folder won't show up in the menu builder.

#3 xmitchx

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 27 August 2004 - 01:45 AM

Ooooh got it. Thanks a lot! I'll do that

#4 Olaf

    Etomite Forum Newbie

  • Member
  • 31 posts

Posted 27 August 2004 - 12:02 PM

I find it more usefull to exclude menuindex 0 from the menu. Keeps the page tree clean (no unpublished folders).

#5 mmjaeger

    Likes Etomite Forums!

  • Member
  • PipPip
  • 343 posts

Posted 27 August 2004 - 02:13 PM

Olaf, on Aug 27 2004, 01:02 PM, said:

I find it more usefull to exclude menuindex 0 from the menu. Keeps the page tree clean (no unpublished folders).

how do you do that - how do you excluced menuindex 0 from the menu

thanks

#6 xmitchx

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 27 August 2004 - 03:52 PM

Hmm Im gonna look for an API to get the stupid menu index :P

#7 xmitchx

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 27 August 2004 - 04:04 PM

Okay I got it. Open up your menubuilder snippet and

FIND
$children = $etomite->getActiveChildren($id); $menu = ""; $childrenCount = count($children); $active="";

REPLACE WITH
$children = $etomite->getActiveChildren($id, 'menuindex', 'ASC', 'id,pagetitle,menuindex'); $menu = ""; $childrenCount = count($children); $active="";

FIND
for($x=0; $x<$childrenCount; $x++) {

ADD AFTER
if ($children[$x]['menuindex'] == '0')
{
	continue;
}

That'll do it B)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users