EE 1
EE 2
Category URL
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Category URL returns the full URL for one specific category based on it's parent's category_url_title's. Like so: index.php/category_one/category_two/category_three
This plugin returns the full URL for one specific category based on it’s parent’s category_url_title’s.
EXAMPLE
If you have a category structure like this:
Pants
- Levis
- Wrangler
Shirts
- Fred Perry
- Armani
- - Business
- - Casual
- Ralph Lauren
Shoes
- Adidas
This plugin would output
index.php/pants
index.php/pants/levis
index.php/pants/wrangler
index.php/shirts
index.php/shirts/fred-perry
index.php/shirts/armani
index.php/shirts/armani/business
index.php/shirts/armani/casual
index.php/shirts/ralph-lauren
index.php/shoes
index.php/shoes/adidas
HOW TO USE
{exp:channel:categories channel="foo" style="nested"}
{category_name} URL is: {exp:category_url template="" parent_id="{parent_id}" category_url_title="{category_url_title}" category_id="{category_id}"}
{/exp:channel:categories}
UPDATES
1.1 - Added support for “template” parameter so you can add your template_group AND/OR template as a subpath to your structure. Example: index.php/template_group/template/pants/armari. In this example the template parameter would be: template=“template_group/template”.
Category URL Links
This entry was last updated March 6, 2011, 10:37 pm.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
2 Reviews:
zizther 01.19.12
This is a great add-on for anyone who requires the category URL’s to be your category_url_title.
It saves a lot of time.
Oscar 01.27.11
Finally!! This was such a pain before. Strange that this functunality isn’t included in the core of EE. Thank you for sharing Johan.