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

Template route with parent and child categories

How Do I?

skubajeff's avatar
skubajeff
2 posts
7 years ago
skubajeff's avatar skubajeff

Hi, I was wondering if it is possible to set up a template route that utilizes categories as well as their child categories?

I see in the EE docs that I can get a category to work via a route like:

/shop/{cat:category}

but I also need to go one deeper and add a child of that category like:

/shop/{cat:category}/{subcat:?????}

Is this something that is able to be done?

Thanks in advance

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

Sure, however subcategories in the URL to drill down isn’t natively supported, you’d need to combine a route like you’re looking for with an add-on like Seg2Cat.

       

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.