brockf / hero

Hero Framework: A powerful Content Management System (CMS) and eCommerce framework built on CodeIgniter.
Other
53 stars 45 forks source link

Customize submenu classes (cross-post from electricfunction's support site) #10

Open superlinkx opened 10 years ago

superlinkx commented 10 years ago

I wasn't sure whether this is best tracked on GitHub or the old support site, so I'm posting it in both places. To be clear, this is a feature request, but I believe it to be an important one, especially for those making Bootstrap based themes.

"I've been working on converting a bootstrap theme to Hero Framework, and one of the challenges I ran into was getting submenus to work without using the .children class. The easiest solution would be if there was a way to add custom classes to submenus, similar to how you can add classes to the main {menu} tags.

Currently, I'd have to rewrite significant parts of the bootstrap theme to make it work correctly in Hero. Luckily, my client won't be needing dropdown menus right away, but a little flexibility in how the menu system works would definitely be appreciated."

josev814 commented 8 years ago

I made a fix for this in my fork. {menu child_class="bootstrap_child"} will result in .bootstrap_child being added as a class to the ul for child sub-menus.