Hi,
I’m pretty experienced with EE but I haven’t used the categories tag too often.
I’ve got a category group with three parent categories each of which has approx. 5 subcategories. The page has a drop-down ‘jump menu’ which reloads the same template and dynamically pulls out entries from the selected subcategory.
All is working fine except the {category_name} tag which displays both the parent category as well as the subcategory. I only want it to display the subcategory title for use as a header (the parent categories don’t have any entries - they are just titles)
The code I’m using to display the title of the selected subcategory is:
{exp:weblog:entries weblog="resources" dynamic="on" limit="1"}
<h3>{categories}{category_name}{/categories}</h3>
<p>{/exp:weblog:entries}The {category_name} tag generates this:
Teams & StaffConferences, Meetings & Events
‘Teams & Staff’ is the title of the parent category and ‘Conferences, Meetings & Events’ is the title of the subcategory currently being viewed. What I want is for the {category_name} tag to simply output the subcategory title - ‘Conferences, Meetings & Events’
The test page can be viewed at
http://www.glasgowservicewithstyle.com/index.php/teams-staff/support-new/
The ‘jump menu’ is in the right column.
Any advice appreciated,
Darrell