Hi Bjorn,
Ah, I see what you’re trying to do there. Forget GWcode CatMenu, that one has been created specifically for a navigation menu such as the one in the demo.
Looking at testing site, when you click “Produkte”, you want to show all root categories for a channel called “produkte” for example. So, your URL will be something like this:
domain.com/index.php/produkte
It will then call the “index” template in your “produkte” template group.
In that template, you’ll use this code:
{exp:channel:categories channel="produkte" parent_only="yes"}
<a href="http://{path=produkte/listing/category/{category_url_title}}">{category_name}</a>
{/exp:channel:categories}
That code will generate links to your root categories such as Studiogeräte and Fussballtraining, with links such as
domain.com/index.php/produkte/listing/category/studiogerate
Then, you’ll create a new template called “listing” where you’ll show the child categories using GWcode Categories for example.
Here’s the code for that template with GWcode Categories:
{exp:gwcode_categories cat_id="{exp:channel:category_heading channel='produkte'}{category_id}{/exp:channel:category_heading}" parse="inward" style="simple" incl_self="no"}
{if "{last_child}" == "yes"}
<a href="http://{path=produkte/products/category/{cat_url_title}}">{cat_name}</a>
{if:else}
<a href="http://{path=produkte/listing/category/{cat_url_title}}">{cat_name}</a>
{/if}
{/exp:gwcode_categories}
What this code does: it looks at the current category being viewed and passes the category ID to the plugin, which then fetches all child categories.
If there are 1 or more child categories, it will show them. If there are no child categories (it’s a last child category), it will link to a template called “products” where you will be able to show all entries for that category.
Of course, you can rename the templates or template group any way you want.
Does this make sense at all? And did I understand the question correctly?
Cheers,
Leon
* Had to edit this post because the forum cut off my code :S
PS Please make sure your channel name is surrounded by single quotes in the exp:channel:category_heading tag, or it won’t work because we’re also wrapping it between double quotes for the plugin.