Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By josevalviana on
I'm trying to develop a menu tree like this:
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr align="left">
<td>
# here comes the main links
<a href="#" id="active_menu" class="mainlevel">Create content</a>
<div style="padding-left: 4px; ">
<a href="#" class="sublevel">Forum topic</a>
</div>
<div style="padding-left: 4px;">
<a href="#" class="sublevel">Page</a>
</div>
<div style="padding-left: 4px;">
<a href="#" class="sublevel">Story</a>
</div>
</td></tr>
<tr align="left"><td><a href="#" class="mainlevel">My account</a></td></tr>
<tr align="left"><td><a href="#" class="mainlevel">Administer</a></td></tr>
<tr align="left"><td><a href="#" class="mainlevel">Log out</a></td></tr>
</tbody></table>
I don't have a single idea how to do it. I just know there's something with theme_menu_item_link, theme_menu_item and theme_menu_tree.
I've tried everything without success.
Comments
nice menus maybe?
Why table? Why develop a menu when drupal has so nice menus, what's wrong with them? Maybe all you need is the nice menus module?
--
Regards,
Doncho.