Menu Normal Design Area

Hi all,


Just getting to grips with Matrix, so please be gentle with me :wink:



I'm working on a menu normal design area - see code below. What I'd like to achieve is to assign a class to menu items that have children when they are not in the lineage for the current page the user is viewing. It looks like this isn't possible, but does anyone know otherwise?



Many thanks for any assistance.




    
      
      
      
      
      
      
      
      
      

In the past we've achieved this by always showing submenu items and using javascript to detect those that have children. This has obvious drawbacks, but is reasonably degradable (without javascript defaults to showing full menu, without the css class applied for those with children).


We've incorporated some 'child count' functionality into other parts of matrix, but the menu has yet to get anything that I'm aware of. It would be a handy feature request if the javascript solution won't fly.

[quote]
In the past we've achieved this by always showing submenu items and using javascript to detect those that have children. This has obvious drawbacks, but is reasonably degradable (without javascript defaults to showing full menu, without the css class applied for those with children).



We've incorporated some 'child count' functionality into other parts of matrix, but the menu has yet to get anything that I'm aware of. It would be a handy feature request if the javascript solution won't fly.

[/quote]



Many thanks for your reply Anthony. Looks like I'll need to create the feature request.

We'd like this kind of 'child count' functionality as well for menu_normal.
We'd like to apply different styling to sub menu items that have children, to those that don't.

If possible we'd like to change the content as well, so that the items with children are displayed as headings, for example, rather than anchors.



Has anything been added in the last two years to do it, or is it still a JavaScript solution?



This is the code we'd like to see