Increment

Developer

Pv Ledoux

3rd Party (Free)

BSD 3-Clause License

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

This plugin auto-increments itself on each call.

Usage:

<p>1: {exp:pvl_increment [id="my_id"] [start="1" step="1"]}</p>
<p>2: {exp:pvl_increment [id="my_id"] random}</p>
<p>3: {exp:pvl_increment [id="my_id"] random}</p>
<p>4: {exp:pvl_increment [id="my_id"] random}</p>

Parameters:

  random  is required in order to avoid tag caching (thanks to @Max_Lazar)
  id=”“ is optional: it allows you to add many incremental loop in the same template
  start=“1” is optional: define where to start incrementation (int, can be negative)
  step=“1”  is optional: define the incrementation step (int, can be negative)

Increment Links

This entry was created December 29, 2011, 3:37 pm.
This entry was last updated November 25, 2013, 6:15 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.

1 Review:

jcogs.design 04.15.15

jcogs.design
Rating - {addon_rating_average}

Simple but very handy way of getting a counter within page.

The counters persist across the EE page, so if you want to use within nested elements you need to find way of automatically naming them - I found simply adding {entry_id}_ to start of increment label works well for this.