Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
ExpressionEngine : Categories : Super clean URL’s and optional sub categories
1. Episode 2 : Categories : Super clean urls + optional sub categories
Please see video at::
http://www.mediasurgery.co.uk/eesurgery/videos/categories-super-clean-urls-and-optional-sub-categories
2. Why do this?
● Out of the box EE has the category keyword in the url
● www.domain.com/hobbies/category/cricket
●
Massive issue? NO
●
Why do it then? Clean urls make sense to users and
its also a pride thing :-)
1/7
3. Categories and sub categories?
● www.domain.com/pets/
● www.domain.com/pets/cats
● www.domain.com/pets/cats/tabby
● www.domain.com/pets/cats/tabby/mike
● www.domain.com/pets/fish/goldy
2/7
4. Why would you write a lot of code for this?
● Client ease of use
● Don't want clients phoning and asking
for help with CMS
● Makes business sense
3/7
5. Why would you write a lot of code for this?
● Client ease of use
● Don't want clients phoning and asking
for help with CMS
● Makes business sense
4/7
6. Notes:
● For EE2 but should work with EE1 with a little
conversion
● Pen and paper – helps your understanding
● Many ways to skin a cat
5/7
7. ExpressionEngine Setup
1.) Install http://devot-ee.com/add-ons/child-categories/ ($20 but a good investment)
2.) Install http://devot-ee.com/add-ons/low-seg2cat/ ( free thanks to the awesome Low)
3.) Setup simple channel with a summary and a body field.
4.) Set up categories with sub categories and assign to channel.
6/7
8. Thanks
● Please Tweet
● Please comment
● Different way or plugin?
● Better code?
Please see video at::
http://www.mediasurgery.co.uk/eesurgery/videos/categories-super-clean-urls-and-optional-sub-categories
7/7