On a Website i use two category groups: Wine (White, Red, Rose etc) and Food (Burgers, Fish, Seafood etc)
First page has a dropdown with categories of Wine
<form>
<select>
<option value="">Wine</option>
{exp:channel:categories
channel="product"
category_group="1"
show_empty="no"
style="linear"}
<option value="{path='pages/vintyp'}">{category_name}</option>
{/exp:channel:categories}
</select>
</form>
Linking to second page with categories of Food
<form>
<select>
<option value="">Food</option>
{exp:channel:categories
channel="product"
category_group="2"
show_empty="no"
style="linear"}
<option value="{path='pages/vintyp'}">{category_name}</option>
{/exp:channel:categories}
</select>
</form>
{exp:channel:entries channel="product" orderby="post_date" sort="desc"}
{/exp:channel:entries}
This will show all the used categories from the category group, but how do i filter out to only show those that correspond the selection of the previous category group?
If select “White” on the first page only “Seafood and Fish” should be in the dropdown on the second page If i select “Red” on the first page only “Burgers” should be in the dropdown.
Any help would be appreciated.