EE 1
EE 2
WB Explode
Developer
3rd Party (Free)
23 downloads (last 90 days)
Download v1.2
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
Plugin
Tags
Takes a list of items separated by pipes and returns either a modified version of that string or iterates over the content in the tag pair.
Install
- Download the repository
- Move system/expressionengine/third_party/wb_category_select to system/expressionengine/expressionengine/third_party
Usage
String
The string is the list of items separated by pipes. This string is turned into an array which is then modified and returned as either a string or iterates over the data between the tag pair.
Values
There are four options for value:
- odd: the odd values in the array
- even: the even values in the array
- first: the first value in the array
- last: the last value in the warray
Limits
Tag Pair:
{exp:wb_explode string="1|2|3|4|5|7|9|13" value="odd" limit="2"}
{explode_value}<br />
{/exp:wb_explode}
would return
1<br />
3<br />
Single Tag
{exp:wb_explode string="1|2|3|4|5|7|9|13" value="odd" limit="2"}
would return “1|3”
Offsets
You can supply an offset that will remove items from the beginning of the array:
{exp:wb_explode string="1|2|3|4|5|7|9|13" value="odd" offset="1"}
would return “2|4|7|13”
Examples
Single Tags
{exp:wb_explode string="1|2|3|4|5|7|9|13" value="odd"}
would return “1|3|5|9”
{exp:wb_explode string="1|2|3|4|5|7|9|13" value="even"}
would return “2|4|7|13”
Tag Pairs
{exp:wb_explode string="1|2|3|4|5|7|9|13" value="odd"}
{explode_value}<br />
{/exp:wb_explode}
would return
1<br />
3<br />
5<br />
9<br />
Download WB Explode
| EE Version | Downloads | Add-On Version | Release Date |
|---|---|---|---|
| 2.+ | Download | 1.2 | 2010-11-29 02:00 AM |
This entry was created November 30, 2010, 12:26 pm.
This entry was last updated November 30, 2010, 8:20 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!