Hey,
I like the [[MenuBuilder]] snippet but is there any way to make a certain doc not appear on it?
Is there any way to make a page NOT appear on menu
Started by xmitchx, Aug 27 2004 12:34 AM
6 replies to this topic
#1
Posted 27 August 2004 - 12:34 AM
#2
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.
> Some folder [unpublished]
> --> some page [published]
> --> some other page [published]
The pages in Some folder won't show up in the menu builder.
#3
Posted 27 August 2004 - 01:45 AM
Ooooh got it. Thanks a lot! I'll do that
#4
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
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
Posted 27 August 2004 - 03:52 PM
Hmm Im gonna look for an API to get the stupid menu index
#7
Posted 27 August 2004 - 04:04 PM
Okay I got it. Open up your menubuilder snippet and
FIND
REPLACE WITH
FIND
ADD AFTER
That'll do it
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
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











