WB Explode

Developer

Wes Baker

3rd Party (Free)

312 downloads (last 90 days)

Creative Commons Attribution Non-Commercial Share Alike Download v1.2

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

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

  1. Download the repository
  2. 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 Support Downloads Add-On Version Release Date
Not Specified Download 1.2 Nov 29, 2010

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!

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!