EE 1
EE 2
VL Category Groups
Developer
3rd Party (Commercial)
Current Version: 1.0
Release Date: Jun 14, 2012
Buy Now!
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
Plugin
Tags
The VL Category Groups plugin allows you to retrieve category groups and their categories from a certain channel or list of category groups.
Parameters
channel=“channel_short_name”
Will return all category groups assigned to the channel.
category_groups=“1|2|3”
Will return those specific category groups.
include_categories=“no”
Defaults to yes, but if you only want to return the category groups, you can set it to “no” to reduce queries.
Example Usage
Category Structure:
Colorado (group)
- Boulder
- Denver
- Springfield
North Carolina (group)
- Chapel Hill
- Durham
- Raleigh
Virginia (group)
- Alexandria
- Arlington
- Falls Church
Now, let’s say that you want to return a list of the states and cities:
{exp:vl_category_groups
channel="location"
}
{if count == "1"}
<ul>
{/if}
<li>
<strong>{category_group_name}</strong>
{categories}
{if category_count == "1"}
<ul>
{/if}
<li>
<a href="/locations/city/{category_url_title}">{category_name}</a>
</li>
{if category_count == total_categories}
</ul>
{/if}
{/categories}
</li>
{if count == total_results}
</ul>
{/if}
{/exp:vl_category_groups}
This entry was created June 14, 2012, 11:53 am.
This entry was last updated June 14, 2012, 8:39 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!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!