Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

Custom Category URL Structures

Jonathan Longnecker at Fortyseven Media wrote up an excellent how-to for creating custom category URL structures.

The method was born out of their work on a furniture website where the requirement was to be able to navigate up the URL from the individual product view and see all products in a category and then all categories.

So, if you have a URL like this (from their example):

http://site.com/products/sofas/10-123/ 

If the user removes the product ID (“10-123”), all of the sofas should display and if the category (“sofas”) is removed, all categories should display. This isn’t possible with the standard EE setup, but this article by Fortseven Media is an excellent solution to the problem.

Posted on May 26, 2009 by Ryan Irelan

Filed Under: Development Tools