We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Child catagories plugin / help...

Development and Programming

Paul Cripps (Nine Four)'s avatar
Paul Cripps (Nine Four)
104 posts
16 years ago
Paul Cripps (Nine Four)'s avatar Paul Cripps (Nine Four)

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.

Automation

* 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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.