By mod_phx on
hi everyone,
i want to integrate the yahoo UI menu.css system into my drupal site, but it requires having the ul and li tags to have certain class id's. where would i find the php file that generates the html for the menu? i'd like to have my site's navigation use the yahoo menu system, but have the admin navigation stay the same, so i'm assuming i'll have to sub-class something somewhere to override the normal menus?
Comments
Best start with the theme manual and then the API
http://drupal.org/handbook/customization (look at the themeing manual)
And there's always the API
http://api.drupal.org/api/4.7/group/themeable
Do you really need to change
Do you really need to change html?
With css you can do nearly anything - place menu items horisontally or vertically, change colors, add images, set indents, add rollover effects...
the reason i want to change
the reason i want to change the HTML is because the Yahoo UI Library has a utility for making objects on the page semi-transparent, but it needs to reference the objects on the page by id. I want to make my Nice Menus sub-menus semi-transparent so that the user can still see the page underneath, and to do that each submenu would need to have an id. Unfortunately (for me) Nice Menus only assigns an id to each individual li element, and not to each ul element, which means I can't make the submenus transparent. that's why I want to be able to modify the code that generates the html, so that my "About Us" submenu can have id="About-Us".
Menu is generated in
Menu is generated in menu.inc
For example you can override function theme_menu_item by creating function phptemplate_menu_item in your template.php file.
Yahoo IU menu is ready
Hi,
Check out http://drupal.org/project/yui
for 5.x yui menu is already implemented.