Loop Plugin

Developer

PutYourLightsOn - Ben Croker

3rd Party (Free)


EE Version Support

  • ExpressionEngine 1.x
  • 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 only way of putting repetitive numerical values into your templates is either by hard-coding them in or by enabling and using php to do it. I always try to avoid enabling php in templates for security purposes, and hard-coding in for example a drop-down select box with 100 values is never fun. This plugin solves the problem by allowing you to perform loops in your templates.

The loop plugin works just like a simplified for loop does. It takes as parameters an initial value, an increment value, and a limit.

Here is an example of using the loop plugin to create a drop-down select box that allows the user to select the year in which they were born:

<select name="year"> 
     <option value="">Select year</option>
{exp:for_loop start="1980" end="2011" increment="1"}  
     <option value="{index}">{index}</option>
{/exp:for_loop}
</select>

 

Loop Plugin Links

This entry was created October 3, 2008, 2:41 pm.
This entry was last updated August 14, 2013, 7:36 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:

a&m impact 05.14.13

a&m impact
Rating - {addon_rating_average}

Works as expected, very easy in use.