I have unchecked the option "Show in menu", but the page still display in my menu...
I think probably it has something to do with my MenuBuilder snippet. The code for this snippet is:
if(!isset($id)) {
$id = $etomite->documentIdentifier; //current document
}
$indentString="";
if(!isset($indent)) {
$indent = "";
$indentString .= "";
} else {
for($in=0; $in<$indent; $in++) {
$indentString .= " ";
}
$indentString .= "» ";
}
$children = $etomite->getActiveChildren($id); $menu = ""; $childrenCount = count($children); $active="";
if($children==false) {
return false;
}
for($x=0; $x<$childrenCount; $x++) {
if($children[$x]['id']==$etomite->documentIdentifier) {
$active="class='highLight'";
} else {
$active="";
}
if($children[$x]['id']==$etomite->documentIdentifier || $children[$x]['id']==$etomite->documentObject['parent']) {
$menu .= "<a ".$active." href='[~".$children[$x]['id']."~]'>$indentString".$children[$x]['pagetitle']."</a>[[MenuBuilder?id=".$children[$x]['id']."&indent=2]]";
} else {
$menu .= "<a href='[~".$children[$x]['id']."~]'>$indentString".$children[$x]['pagetitle']."</a>";
}
}
return $menu."";
How can i alter this code, so the documents with the option "Show in Menu" unchecked will not be displayed in the menu?
BTW, i am using ModX 0.9.1rev 646.
TIA!