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.
hi i need help with something.
i have a menu at the top with several li's, containing ul's that also contain lis.. pretty much like the one in this site [http://www.webmd.com].
i was wondering, how do i set a limit to the displayed li's in the ul of an li... i'm sorry it's a tad bit complicated because it's nested and all.. anyway, as you can see in that site, in the link Health A-Z, 3 columns(ul) that contains several
how do i do this?
any help is greatly appreciated. thanks
Comments
Comment #1
kanani CreditAttribution: kanani commentedWell this isn't specific to megamenu, but you could do something like this in your template.php
The tpl file i'm calling above ( $output = theme('footer_sitemap_mini', $treedata);) looks like this
then reference it in your preprocess function
then in your page.tpl.php (or other template file) you can do
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #3
ram4nd CreditAttribution: ram4nd as a volunteer commented