By shortye on
1.
Is there a way to load theme_menu_tree outside the index/theme? Specially the primary links!
I want to load the primary link/menu via a ajax in a menu bar. This needs to be done to make my menu work in IE5.5!
Example of the dropdown menu: Klm.com it's almost the same. I checked the nice_menu module, but it doesn't apply.
2.
Is there a way to add a class to the theme_menu_item_link or theme_menu_item, should this be done by creating your own module even if you want to change the primary links class?
Thanks in advance for everybody how has some input or suggestion!
Comments
It is possible to load any
It is possible to load any menu into your template, using the following code:
Where id is the unique ID of your menu. (a quick way to find this is to go to admin/build/menu and hover over the edit link for the menu you are calling).
If you want to add classes to the individual menu items you are probably going to need to override the theme function in your template.php file. This handbook section would be a good place to start looking for the code you need for that.
Thanx
Thxn for the help.
The 2 solution will help.
The 1 solution is not realy what i am look for. The thing is I need to load the menu from javascript. This means i read the menu as a html file and access the diffrent lists to style them via DOM. To do this I need drupal to only generate my menu and nothing else as html. And i have no idea how this works? The loading of only the html of the menu is done to let the menu work in IE5.5.