solved Categories as a top menu drop down?

hansd007
@hansd007
10 years ago
50 posts
We would like to have the categories generated by the users appear in a drop-down menu from the top main menu.

So for example, next to Home, we would have a Categories menu and when hovering over it would display all the categories and link to them once selected.

Anybody do this or have any suggestions?
updated by @hansd007: 06/19/14 04:46:38PM
michael
@michael
10 years ago
7,717 posts
use jrCore_list and group_by

"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

Fiddle with it to figure it out, but here's a guess to get you going....
{jrCore_list module="jrAudio" group_by="audio_genre_url" template="some_file.tpl"}

then in some_file.tpl: (you could do it with a capture too, but to keep it simple.)
{jrCore_module_url module="jrAudio" assign="murl"}
{if isset($_items) && is_array($_items)}
  {foreach $_items as $item}
     <a href="{$jamroom_url}/{$murl}/{$item.audio_genre_url}">{$item.audio_genre}</a>
  {/foreach}
{/if}
hansd007
@hansd007
10 years ago
50 posts
@michael

Worked like a charm, thank you.

Tags