Search code examples
phpsearchexpressionengine

Displaying children categories in current parent category (Expression Engine)


I need help with expression engines terrible categories system...

I have 4 main categories, each of which have children categories, these children categories have another 2-3 children category groups.

I need a way for users to search through these categories, so the best way is to display the current categories children and provide the user to go back to the last category. (basically a breadcrumb trial with multiple categories.

In a nutshell, how can I display children categories based on the current parent that is active? For example if one of my category structure was as follows:

Toys
     -AGE 2-5
         - Cuddly Toys
         - Small Toys
         - Teddy Bears
     -AGE 5-10
         - Lego
         - Cars
         - Dolls
     -AGE 10-16
         - Video Games
         - Board Games
         - Bricks

If the user clicks "Toys", this will redirect to a page with all the toys, then the user can search further by now selecting one of the children categories "AGE 2-5, AGE 5-10 or AGE 10-16. If they select one of these, they can now search further by choosing another child.

Thanks in advance


Solution

  • Have a look at the Child Categories add-on, and also the GW Code Categories add-on. I'm sure that one of these can achieve what you're looking to do.