Low Options displays the list items or options for a given channel field. These options are the values given in the settings of the field (eg: dropdown fields). If no such options are given (eg: regular text input fields), a list of unique values of that field will be generated based on the given parameters.
Requires EE 2.2.0+ and is especially useful in combination with Low Search. The EE3 compatible version is available here.
- Download and unzip;
- Copy the
low_optionsfolder to yoursystem/expressionengine/third_partydirectory.
{exp:low_options:channel_field_short_name}
{if option:group != ''}<optgroup label="{option:group}">{/if}
{options}<option value="{option:value}">{option:label}</option>{/options}
{if option:group != ''}</optgroup>{/if}
{/exp:low_options:channel_field_short_name}
{exp:low_options:get field="channel_field_short_name"}
{if option:group != ''}<optgroup label="{option:group}">{/if}
{options}<option value="{option:value}">{option:label}</option>{/options}
{if option:group != ''}</optgroup>{/if}
{/exp:low_options:get}
ignore="": Pipe-separated list of values to ignoreshow_empty="": Set tonoto only show values that have been assigned to entrieschannel="": Use in combination withshow_empty="no"to filter assigned entriesstatus="": Use in combination withshow_empty="no"to filter assigned entriescategory="": Use in combination withshow_empty="no"to filter assigned entriesshow_future_entries="": Use in combination withshow_empty="no"to filter assigned entriesshow_expired="": Use in combination withshow_empty="no"to filter assigned entriessort="": Only applies to text fields: set todescto display generated options in reverse order