EE 1
EE 2
GWcode Alternate
Developer
3rd Party (Free)
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
Plugin
Tags
This simple plugin for ExpressionEngine 1 and 2 lets you rotate through any number of values to create alternations, for CSS classes for example.
You can use this plugin to rotate through any number of values, similar to the switch variable in the {exp:channel:entries} tag for example.
The most straightforward use for this would be to alternate CSS classes.
Required parameters:
- count
- alternate
Variables (when using a tag pair - see 2nd example):
- {alternate_value}
EXAMPLES
Using a single tag:
<ul>
{exp:channel:categories channel="example" style="linear"}
<li class="{exp:gwcode_alternate count="{count}" alternate="uneven|even"}">{category_name}</li>
{/exp:channel:categories}
</ul>
Using a tag pair:
<ul>
{exp:channel:categories channel="example" style="linear"}
{exp:gwcode_alternate count="{count}" alternate="one|two|three"}<li class="{alternate_value}">{alternate_value}: {category_name}</li>{/exp:gwcode_alternate}
{/exp:channel:categories}
</ul>
GWcode Alternate Links
This entry was created March 28, 2011, 12:02 pm.
This entry was last updated March 28, 2011, 5:06 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!