Skip to content

An ExpressionEngine add-on to display channel field list items or options

Notifications You must be signed in to change notification settings

EEHarbor/low_options

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Low Options for ExpressionEngine

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.

Installation

  • Download and unzip;
  • Copy the low_options folder to your system/expressionengine/third_party directory.

Usage

ExpressionEngine 2.5 and up

{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}

ExpressionEngine 2.4 and down

{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}

Parameters

  • ignore="" : Pipe-separated list of values to ignore
  • show_empty="" : Set to no to only show values that have been assigned to entries
  • channel="" : Use in combination with show_empty="no" to filter assigned entries
  • status="" : Use in combination with show_empty="no" to filter assigned entries
  • category="" : Use in combination with show_empty="no" to filter assigned entries
  • show_future_entries="" : Use in combination with show_empty="no" to filter assigned entries
  • show_expired="" : Use in combination with show_empty="no" to filter assigned entries
  • sort="" : Only applies to text fields: set to desc to display generated options in reverse order

About

An ExpressionEngine add-on to display channel field list items or options

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages