This project is read-only.

Taxonomies dropdown list in menu

Topics: General
Jul 3, 2011 at 11:39 PM

In the demo that Sebastion gave at Teched he demonstrated a dropdown menu from a list of taxonomies. Can you give me a hint on how you can do that?

Thanks in Advance.


Jul 4, 2011 at 5:32 AM

You have to add the Taxonomy Menu part to the Taxonomy content type.

Jul 4, 2011 at 12:07 PM

I had allready figured that out but in IE9 you get just the option to the right of the main option. In firefox 5 it is not vissible and it tries to be underneed it but i gives problems since the content is over it. Do you have to completly rebuild the way the menu is rendering by replacing the <ul> in the menu by dropdowns?  

Jul 4, 2011 at 12:51 PM

It might be that there is a css error there. UL tags are not the issue.

Jul 4, 2011 at 3:08 PM

This is the HTML rendered by a Taxonomy with option show in the menu. Just used the thememachine with standard CSS.

    <ul class="menu menu-main">
<li class="current">    <a href="/">HOME</a>
<li>    <a href="/produkten">PRODUKTEN</a>
<li>    <a href="/artikelgroepen">ONZE PRODUKTEN</a>
<li>    <a href="/artikelgroepen/boeketten">BOEKETTEN</a>



Jul 4, 2011 at 11:04 PM

The html is ok, it's just that the theme that you are using is not ready for multilevel menu items. For the purpose of the demonstration, my theme was handling that nicely. Plugins like jQuery Superfish might help you in that.

Jul 4, 2011 at 11:10 PM

Thanks a lott Sebastian. Thats the answer I needed.

Sep 12, 2011 at 12:33 PM

How do you create a theme that is ready for multilevel menu items?

Isn't the rendering of the menu defined in Orchard.Core Navigation. Where exactly do you use a plugin like Superfish?