Hi all, got myself in to a bit of a pickle here and think I’ve overcomolicated what Im trying to achieve and therefore my brains gone to mush, so any help would be appreciated.
I have one channel for some products that templates to one product page which I want to list and group in to four main categories and then within them four categories the products are furthermore categorised, for example as this one category shows below.
Lines and Designs (parent)
Generic Spaces (child)
Disabled Spaces (child)
Mother & Child Spaces (child)
I thought (initally) I should create four category groups and then list each child within and then link all four parent category groups to the product channel.
I have never tried categorising in this way before and it’s presented me with a headache. For example, to list each parent category (as links) dynamically what tags would I use? This just gives me each category within?
This is how I would usually mark it up using just one level categories:-
{exp:channel:category_archive channel="products" show_empty="no" }
{categories}
<a href="#" title="Go to {category_name}">» {category_name}</a>
{/categories}
{/exp:channel:category_archive}I then want to pull in the parent categorys name in to a header tag but the below just presents a number….have tried many alternatives but to no avail?
<h4>{categories}{category_group}{/categories}</h4>Any help would be much appreciated as like I say I think I’ve overthought this and its now giving me a headache.
Thanks
Scott