I have a three-step user journey, drilling down from parent categories on page #1, child categories on #2 and finally entries on #3.
I’m using the Category ID plugin to get the category from the URL.
By the time I get to #3, I no longer have the category ID which is needed for displaying on that page.
The code I’m using is as follows.
Page 1
{exp:channel:categories channel="products" style="linear" show_empty="no"}
<a href="http://{path=products/subcat}">{category_name}</a>
{/exp:channel:categories}...this links to Page 2
{exp:category_id category_group="6" category_url_title="{segment_4}" parse="inward"}
{exp:channel:entries category="{category_id}" style="linear" show_empty="yes" status="open|featured"}
<a href="http://{permalink=products/detail}">{title}</a>
{/exp:channel:entries}
{/exp:category_id}...which in turn links to Page 3
{exp:channel:entries entry_id="{segment_3}" status="open|featured"}
<h1>{title}</h1>
{/exp:channel:entries}What is it I’m doing wrong? I’m sure there’s an obvious way to dynamically create a path of links through the site as described above, but I’m going round in circles trying to work out what it is.