amphibian / time_select.ee_addon

Fieldtype for ExpressionEngine® 2 and 3 that offers a configurable dropdown menu of times.
10 stars 3 forks source link

Time Select is a fieldtype for ExpressionEngine® 2 and 3 that offers a configurable dropdown menu of times.

Usage

After installing and activating Time Select, choose it as your fieldtype in either a custom field, Grid field, Matrix field, or Low Variables field. You have two configuration options for each Time Select field:

Template Tags

When displaying your field within your templates, you can format the output using standard EE date formatting tokens. If you don't format your field output, the time's value in seconds will be displayed.

Example:

{my_time_field format="%g:%i%a"}

This yields 7:00pm.

When using as a Low Variables var, you'll ned to use low Variables' parse tag:

{exp:low_variables:parse var="lv_my_var" format="%g:%i%a"}

Time Select requires ExpressionEngine 3.0.0 or greater, or ExpressionEngine 2.1.3 or greater, and is compatible with Matrix, Grid, Blocks/Bloqs, and Low Variables fields.