VL Category Groups

Developer

Viget Labs

3rd Party (Commercial)
Current Version: 1.0
Release Date: Jun 14, 2012

License Agreement

Buy Now!

$6.00
Qty:

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!