Default CSS-menu problem
Posted: Sun Oct 15, 2006 3:12 pm
I just noticed that there's a small quirk in the default CSS-menu template.
Normal list-items become menuparents even if all child-pages are set as "hide from menu". This a bit annoying when a menu item has a small arrow as an indicator of a submenu when in fact the link has no submenu.
Example: I have a contact form and have a "thank you"-page below it that is only displayed when the user sents the form. Still the menu shows a submenu arrow even though the child-page is hidden.
I'll try figuring out a conditional statement in the smarty-template but I have very little experience from smarty so if anyone has fixed this please post your solution. Thanks! (edit: I don't think this can be solved with smarty. I believe this is a problem in the menumodule)
Edit: After another seach I noticed that there was another thread already about the same issue. Any fixes yet?
I think that the $node->haschildren should check if the children are indeed to be shown in the navigation.
Normal list-items become menuparents even if all child-pages are set as "hide from menu". This a bit annoying when a menu item has a small arrow as an indicator of a submenu when in fact the link has no submenu.
Example: I have a contact form and have a "thank you"-page below it that is only displayed when the user sents the form. Still the menu shows a submenu arrow even though the child-page is hidden.
I'll try figuring out a conditional statement in the smarty-template but I have very little experience from smarty so if anyone has fixed this please post your solution. Thanks! (edit: I don't think this can be solved with smarty. I believe this is a problem in the menumodule)
Edit: After another seach I noticed that there was another thread already about the same issue. Any fixes yet?
I think that the $node->haschildren should check if the children are indeed to be shown in the navigation.