Hi,
I did a decent amount of searching, couldn’t find anything, so here goes.
This is what I want:
site.com/category1 - lists everything under category1
site.com/category1/sub1 - lists everything under sub1
I’m using a template to achieve this, now essentially, what I want to achieve is:
{exp:channel:entries channel="products" limit="5" category="{if "{segment_2}"}{segment_2}{if:else}{segment_1}{/if}"}This fails as the category (as far as I understand) only takes id numbers, as apposed to names, any ideas how to get the id from the names and then to feed the id’s into the code above?
Thanks dudes.