EE 1
EE 2
Cat2
Developer
3rd Party (Free)
Download v1.1.0Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Convert between category name, category id and category url title. Query results are cached, so you can use the same tag multiple times in your template without extra overhead.
Installation
- Create a folder called ‘cat2’ inside ./system/expressionengine/third_party/
- Move the file pi.cat2.php into the folder
Tags:
{exp:cat2:id}
{exp:cat2:name}
{exp:cat2:url_title}
Parameters:
category_url_title=
category_name=
category_id=
category_group=
debug="yes|no"
Example use:
category_id from category_url_title:
{exp:cat2:id category_url_title="my_category" category_group="5"}
category_id from category_name:
{exp:cat2:id category_name="my category" category_group="5"}
category_name from category_id:
{exp:cat2:name category_id="25" category_group="5"}
category_name from category_url_title:
{exp:cat2:name category_url_title="my_category" category_group="5"}
category_url_title from category_id:
{exp:cat2:url_title category_id="25" category_group="5"}
category_url_title from category_name:
{exp:cat2:url_title category_name="my category" category_group="5"}
Can also be used as a tag pair, e.g.:
{exp:cat2:id category_url_title="my_category" category_group="5" parse="inward"}
{category_id}
{/exp:cat2:id}
{exp:cat2:name category_id="25" category_group="5" parse="inward"}
{category__name}
{/exp:cat2:name}
{exp:cat2:url_title category_id="25" category_group="5" parse="inward"}
{category_url_title}
{/exp:cat2:url_title}
Download Cat2
| EE Version | Downloads | Add-On Version | Release Date |
|---|---|---|---|
| 2.+ | Download | 1.1.0 | 2011-07-01 12:00 AM |
This entry was last updated July 5, 2011, 4:05 am.
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
Really handy add-on! Thank Mark
Mark Bowen Design 08.17.11
Absolutely fantastic plugin!
Needed this due to using Structure on a site and having to find out the category_id from the category_name in the URL.
Does exactly what it says on the tin and a whole lot more.
Thanks Mark.