Plugin

EE 1
EE 2
VZ Picky

Developer

Eli Van Zoeren

3rd Party (Free)

Creative Commons Attribution Share Alike Download v0.5.0

Compatibility

Requirements

  • jQuery for the Control Panel

Tags

VZ Picky will display a dropdown list of all the unique values for a particular custom field. Perfect for advanced search forms!

Say you want to offer a select field for a particular custom field on your advanced search page. You could manually enter all the potential values that someone might search for and try to keep that list up-to-date as entries are added and deleted. Or you could use VZ Picky, which will look through all the entries and generate an option tag for each one. You can even have it alphabetize them, and if you sometimes store more than one value in the same field (like tags separated by commas) you can have it split those into separate options.

Please note that this plugin doesn’t output the <select> tag itself, only the <option> tags. It’s easier for you to write the <select> in native HTML.

Usage

<select>
    {exp:vz_picky field="field_name"}
</select>

field=”“ - The short name of the custom field to pull values from.

Optional parameters

value=”“ - Value to pre-select.

separator=”“ - You can further break apart each value using this parameter. If a field contains a comma-separated list of tags, for instance, this will list each tag as its own .

placeholder=”“ - Text to display when nothing is selected.

sort=“alpha” - Sort the values alphabetically. If this is not set, they will be displayed in the order they appear in the database.

site_id=”“ - On a multi-site installation, the id of the site to use. Defaults to 1.

Installation

Just place the vz_picky folder into /system/expression_engine/third_party/. That’s it, you’re done!

Download VZ Picky

EE Version Downloads Add-On Version Release Date
2.+ Download 0.5.0 2011-11-22 05:08 PM

This entry was last updated May 2, 2012, 2:09 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!

2 Reviews:

James B. 09.21.11

Rating - {addon_rating_average}

Worked as advertised and support of my issue was handled personally and quickly.

Jerseyjones 09.15.11

Rating - {addon_rating_average}

Can’t Install