Hello-
Apache 1.3.33
PHP 4.3.9
MySQL 4.0.27-standard
I'm running CMSMS 1.0.1, using the vertical CSS menu. Here is the situation:
-I have a top-level (parent) menu item (not a child of any other item)
-I create one or more child items under the Parent, and uncheck the "show in menu" option on each one.
-When I view the menu, I get the arrow indicating there are subitems. The menu gets the "menuparent" CSS class.
This is an incorrect behavior, as it has no child items to show.
If you are wondering why I'm hiding all the child items, it is because I have a Parent item with many children, so many the popout menu goes off the bottom of most screens. I am providing for alternate navigation, but I need to fix the menu appearance.
First, I'd like to know if anyone else can reproduce this, it should be easy enough to test.
Second, I'm hoping there a fix or workaround for this. I searched the forums and didn't find anything, but I may not have hit on the right keywords. Any ideas?
Thank you-
Vaughn
All child items hidden, but parent menu item still gets "menuparent" class
All child items hidden, but parent menu item still gets "menuparent" class
Last edited by vaughnt on Wed Sep 20, 2006 12:14 am, edited 1 time in total.
Re: All child items hidden, but parent menu item still gets "menuparent" class
Anybody able to confirm this?
Re: All child items hidden, but parent menu item still gets "menuparent" class
It's coming from the menu template which you can change, either by using a diff. one or making a copy and taking that call out or you can go to the style sheet and comment out the line for the arrow.
Re: All child items hidden, but parent menu item still gets "menuparent" class
I was afraid you'd say that. 
I've already mucked about in menu manager & the nav stylesheet, so if I need to turn the arrows off entirely I can. But fixing the output of:
{elseif $node->haschildren == true}
<a class="menuparent"
so it doesn't return true when all the children are hidden is beyond my abilities. I tried tracking it down in MenuManager.module.php but don't know php, and couldn't figure it out.
Thank you,
Vaughn
I've already mucked about in menu manager & the nav stylesheet, so if I need to turn the arrows off entirely I can. But fixing the output of:
{elseif $node->haschildren == true}
<a class="menuparent"
so it doesn't return true when all the children are hidden is beyond my abilities. I tried tracking it down in MenuManager.module.php but don't know php, and couldn't figure it out.
Thank you,
Vaughn
Re: All child items hidden, but parent menu item still gets "menuparent" class
its quite deep in the core
class.content.inc.php HasChildren function, I think it cant be changed there becouse it might brake quite a few places.
maybe Ill just add HasVisibleChildren function there...
class.content.inc.php HasChildren function, I think it cant be changed there becouse it might brake quite a few places.
maybe Ill just add HasVisibleChildren function there...
Re: All child items hidden, but parent menu item still gets "menuparent" class
How about taking them out from under a page and just have it in the first level w/o parents...
-
Bradleyenator
Re: All child items hidden, but parent menu item still gets "menuparent" class
Has anyone found a solution to this??? Has that function "HasVisibleChildren" been created??
As I am having a similar problem. I am using my own custom Menu Template and CSS and when you un-tick "Show in Menu" it stuffs up my menu. Is there a way I can somehow make a direct DB call or something to see if that box has been ticked or not from within a Menu Template???
As I am having a similar problem. I am using my own custom Menu Template and CSS and when you un-tick "Show in Menu" it stuffs up my menu. Is there a way I can somehow make a direct DB call or something to see if that box has been ticked or not from within a Menu Template???
Re: All child items hidden, but parent menu item still gets "menuparent" class
I also set pages to be "inactive". That way they don't show as childs. For pages I do need to be active, but not visible in the menu, f.e. "thankyou", "resultpages" etc.. I've created a parent that is not visible in the menu and has all "not visible" children.
Ronny
Ronny



