I'm trying to create a custom menus with main menu items and children formatted differently, like this:
Main-level Item1
Sub-level Item1
Sub-level Item2
Main-level Item2
Sub-level Item1
Sub-level Item2
Sub-level Item3
Sub-level Item4
Main-level Item3
Sub-level Item1
Sub-level Item2
The standard menu output does not seem to have enough differentiation in class/id coding to accomplish this (unless I'm missing something there - If only IE supported named children in the cascade!).
I guess I could patch the module that creates the nested UL entries to add a differentiator, but I hate to change core stuff if it can be done in the template (or block code?).
I understand how to access the primary and secondary menus in an array, but how can you access a custom (admin-created) menu?
Comments
Do it in template.php
This is used by the PHP-Template-engine and you can do customizing with functions like:
Then you are able to use:
in your style.css
Have a look at "Internet Jobs Theme" (http://drupal.org/node/50119) for a working example.
Thomas Narres
Keep the sunny side up