Year Options
Developer
3rd Party (Free)
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
ExpressionEngine plugin which generates options for select fields starting from current year.
Description
ExpressionEngine plugin which generates options for select fields starting from current year.
Installation
Copy the “year_options” folder to your /system/expressionengine/third_party folder.
Usage
Use {exp:year_options years=”” value_prefix=”” text_prefix=”“} to output year options.
The years parameter indicates the number of years in addition to this year you’d like to output, and is required. Both the value_prefix and test_prefix paramaters are optional.
Example 1
<select>
<option value="">Year</option>
{exp:year_options years="5"}
</select>
This would return:
<select>
<option value="">Year</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
</select>
Example 2
<select>
<option value="">Year</option>
{exp:year_options years="5" value_prefix="ABC-" text_prefix="XYZ-"}
</select>
This would return:
<select>
<option value="">Year</option>
<option value="ABC-2014">XYZ-2014</option>
<option value="ABC-2013">XYZ-2013</option>
<option value="ABC-2012">XYZ-2012</option>
<option value="ABC-2011">XYZ-2011</option>
<option value="ABC-2010">XYZ-2010</option>
<option value="ABC-2009">XYZ-2009</option>
</select>
Year Options Links
This entry was created November 7, 2014, 10:20 am.
This entry was last updated November 7, 2014, 12:43 pm.
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!