We need something that will allow us to ONLY display selected parent info, then specific child catagor information.
The plan is if you clicked Automation a pop up appears with clicked catagory name (Automation) a list of its children and then its description.
* Morpheus Solution Suite
* Morpheus Automation
* Morpheus Foundation
* Morpheus ICE
* Morpheus Media Management
* Automation Partners
As you then rollover each of the child catagories you get thier descriptions and catagory image.
the only way I can thin kof doing this is a set of queries. The problem is if the client adds a catagory the we’ll need to amend this code as the IDs are hard coded so it aint great:
{exp:query sql = “ SELECT cat_id AS child_category_id,
cat_name AS child_category_name,
cat_url_title AS child_category_url_title,
cat_description AS child_category_description,
cat_image AS child_cat_image,
cat_order AS child_cat_order
FROM exp_categories WHERE parent_id = ‘11’ ORDER BY cat_order"}
<h2>child ID: {child_category_id}</h2>
child Name: {child_category_name}
child Title: {child_category_url_title}
child Image: {child_cat_image}
child Description: {child_category_description}
{/exp:query}
If anyone has a better idea how to achieve this please let us know.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.