Date / timestamp
Date Field Plugin for FLEXIcontent
Plugin : date — Date / Timestamp / Publish Up-Down Dates
:::info Source
This page is generated from plugins/flexicontent_fields/date/date.xml and the official FLEXIcontent 5.x language files.
:::
Editing
Editing
Values
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use field in a groupuse_ingroup | Enable to allow field to be part of field group, that is created via 'Field Group' field. NOTE: You should then select this field in ONLY ONE field group | multilist | 0 = No1 = Yes | 0 (No) |
Number of values
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show Onshowon | Shown On Conditions. Use Joomla Format 'fieldname:value' e.g album_type:2 NOTE: DO not set this field to required. Also DISABLE prettyCheckable / Select2 JS in any referenced fields of type select*, checkbox*, radio* | text | — | — |
Requiredrequired | Choose yes if the field must be filled | radio | 0 = No1 = Yes | 0 (No) |
Allow multiple valuesallow_multiple | Allow more than 1 value for this field | multilist | 0 = No1 = Yes | 0 (No) |
max # valuesmax_values | The max number of values you wish to record | text | — | 0 |
Values per rowfields_box_placing | Save space by allowing multiple values to show per row | radio | 0 = 11 = Multiple | 0 (1) |
Add positionadd_position | Select to add value inline (show add button at every value) or append them to the bottom of the value list | multilist | 0 = Append to bottom1 = Inline append2 = Inline prepend3 = Inline both | 3 (Inline both) |
Year limitation offsets
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Minimum yearminyear | Relative to current year, negative is before current year, zero is current, positive is after current year | text | — | — |
Maximum yearmaxyear | Relative to current year, negative is before current year, zero is current, positive is after current year | text | — | — |
Values Creation
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Date sourcedate_source | Normally this field will display the date entered via item edit form. But you can select to display item's start (publish_up) or end (publish_down) date. NOTE: If you change source to be start / end publication dates, then note that existing field values in the DB are not automatically updated | multilist | 0 = Normal (date field editable)1 = Show item's Start Publication Date2 = Show item's End Publication Date3 = Timestamp (current time) | 0 (Normal (date field editable)) |
Date format
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Date formatdate_format_form | Default format is: %Y-%m-%d (YYYY-mm-dd) | text | — | %Y-%m-%d |
Allow timedate_allowtime | Select to allow editor to add time information after the entered date value | multilist | 0 = No1 = Yes2 = Yes, force zero on empty | 1 (Yes) |
Use timezonesuse_editor_tz | Select to edit / display dates using the timezone of the current user. NOTE: date is converted time to UTC+0 when storing time information | radio | 0 = No, Use UTC 01 = Yes | 0 (No, Use UTC 0) |
Automatic value creation
note
Flexicontent PRO version only
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Automatic valueauto_value | Enable to create the value of this field automatically on item form save. In some cases, you might want to enable option of hiding this field in frontend or backend or both item forms | multilist | 0 = No2 = Use custom code | 0 (No) |
Custom codeauto_value_code | Enter PHP code to be used create the custom value, please set to empty and save to load the default example, and then customize | editor | — | fields; if ( !isset($F['fieldname01']) ) return array('fieldname01 field not found'); $vals = array(); foreach($F['fieldname01']->postdata as $i => $v) { $vals[$i] = 'Auto : ' . $v; } return $vals; |
Form field
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display labeldisplay_label_form | Display or hide label of this field | multilist | 0 = No1 = Floated left2 = Cleared-1 = As placeholder | 1 (Floated left) |
Labellabel_form | Enter a label to use for item form that is different than field label for viewing | text | — | — |
No access messageno_acc_msg_form | Leave this blank to use system's default no access message, or enter a custom message for this field | text | — | — |
Input field
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Placeholderplaceholder | A word / short text, displayed inside the input, until the user starts typing. This can be a language string | text | — | — |
Field sizesize | Field size in the HTML form | text | — | 30 |
Disable keyboard inputdisable_keyboardinput | Enable this option if you want to disable keyboard input. | radio | 0 = No1 = Yes | 0 (No) |
Show Usage (edit form)show_usage | Enable this to show information to the user about entering / displaying values | radio | 0 = No1 = Yes | 0 (No) |
onChangeonchange | onChange | textarea | — | — |
Import
Manipulate values during import
note
Flexicontent PRO version only
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Remap Valuesimport_fv_remap_mode | Enable to change some imported values to some other values. | multilist | 0 = No1 = Yes | 0 (No) |
Value Remappingsimport_fv_remap | Enter like importValue1::realValue1%% importValue2::realValue2%% importValue3::realValue3%% | textarea | — | — |
Values manipulationimport_fv_ccode_mode | Execute custom methods to manipulate field values | multilist | 0 = No2 = Use custom code | 0 (No) |
Custom codeimport_fv_ccode | Enter PHP code to be used create the custom value, please set to empty and save to load the default example, and then customize | editor | — | parameters->get('some_param'); foreach($values as $i => $v) { $values[$i] = 'Example ' . $i . ' : ' . $v; } return $values; |
Editing
Viewing
Viewing
Basic
Display
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show in clientsshow_in_clients | Select if the field will be created and shown to specific clients | fccheckbox | — | — |
Show in viewsshow_in_views | Select if the field will be created and shown to specific views | fccheckbox | — | — |
Label and access
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display labeldisplay_label | Display or hide label of this field | radio | 0 = No1 = Yes | 1 (Yes) |
Show no access messageshow_acc_msg | When field is inaccessible a no access message will be shown. NOTE: IF this parameter is disabled, the field will be invisible to users with no access, without any message or warning that it exists | multilist | 0 = No1 = Yes | 0 (No) |
No access messageno_acc_msg | Leave this blank to use system's default no access message, or enter a custom message for this field | text | — | — |
Export
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Include in CSV exportinclude_in_csv_export | Select to include field in CSV export. Take care that not all fields support CSV export. Please test to determine if this field is included properly, since a special method is needed but not implemented yet by all fields | multilist | 0 = No1 = Raw values2 = Rendered values | 0 (No) |
Strip HTML tagscsv_strip_html | — | radio | 0 = No1 = Yes | 0 (No) |
Backend View
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Backend view appearancebackend_view_appearance | How this field's value is displayed in the admin items list. Overrides the global 'Custom columns appearance' setting when not set to Default. | multilist | 0 = Default1 = Check mark2 = Clean up HTML and trim | 0 (Default) |
Trim length (characters)backend_view_trim_chars | Number of characters to keep after stripping HTML tags. | text | — | 100 |
Layout
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Values layoutviewlayout | Please note: - do not modify default layouts, - custom layouts may need updating in future to respect new configuration and work properly - to create new copy (same folder): plugins/flexicontent_fields/FIELD_TYPE/tmpl/value_*.php as value_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modify | fclayout | default = Default (Date)age = Age (Years / months since a date) | default (Default (Date)) |
Value display
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show no value messageshow_no_value | Display a message that field has no value instead of empty display | multilist | 0 = No1 = Yes | 0 (No) |
No value messageno_value_msg | The text to display when field has no value, leave empty to show default text | text | — | — |
Layout parameters
Value list
Prefix - Suffix - Separator
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Preset configurationsprx_sfx_open_close_configs | This is a list of preset configurations, after loading them, you can click custom again to customize them | multilist | — = Customize1 = List: numbered2 = List (bullets)3 = List (circle)4 = List (square)5 = List (no marking)6 = Badge7 = Badge success8 = Badge info9 = Badge warning10 = Badge important | — |
Remove spaceremove_space | Remove the space between prefix value and suffix. It's recommended for plugin use, for example {play}mysong.mp3{/play} | radio | 0 = No1 = Yes | 0 (No) |
Every value prefixpretext | This text is placed immediately before every field value | text | — | — |
Every value suffixposttext | This text is placed immediately after every field value | text | — | — |
note
NOTE: opening / closing texts and value separator, are not used inside a fieldgroup
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Value separator (frontend views)separatorf | Choose a separator to separate the values in frontend views (placed between values) | multilist | 0 = Space1 = Line break6 = Horizontal line2 = Pipe3 = Comma4 = Texts: Closing + Opening5 = Empty (No characters)7 = Custom separator | 1 (Line break) |
Custom separatorseparatorf_custom | — | text | — | — |
Opening text for Fieldopentag | This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Closing text for Fieldclosetag | This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Content plugins
Content Plugins -- You need this for description field, for other fields enable only if needed
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Trigger content pluginstrigger_onprepare_content | Enable this option if you want to trigger content plugin event: onPrepareContent. A small number of plugins may not work outside com_content. | multilist | 0 = No1 = Yes | 0 (No) |
Trigger inside categorytrigger_plgs_incatview | Trigger content plugins on this field when item is displayed in a category view | radio | 0 = No1 = Yes | 0 (No) |
Specific plugins onlyplugins | You can choose specific plugins in this list or leave empty to trigger all. This feature is useful in some cases to avoid conflicts, multiple displays or reduce the load. Keep in mind that once the plugin is imported for a field, it will automatically be executed on all following fields in the loop. | pluginlist | — | — |
Viewing
SEO
Microdata support
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Microdata propertymicrodata_itemprop | Select a microdata property to characterize all values of this field. This will allow search engines to categorize values of this field appropriately, improving SEO of your pages | microdataprops | — | — |
Filtering
Parameters used for filtering in (a) Category-based views , (b) search view
Filtering
Values
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Filter value orderreverse_filter_order | Enable to display filter values in reverse ordering. NOTE that in the case of slider range display, the left handle will be the maximum, and the right handle will be the minimum | radio | 0 = Normal1 = Reverse | 0 (Normal) |
Filter value comparison
note
... if field is multi-valued (item form) ... and has a multi-valued filter appearance
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Require ALL selected valuesfilter_values_require_all | Usually you will include items found to have any of the selected values. -- You can select to require all selected filter values to be matched for the found items. -- WARNING to developers of new field types: this will not work properly if your field saves SAME field value more than once for the same item. So in such a case do not add this option to your field ! | radio | 0 = No1 = Yes, slower | 0 (No) |
Require ANY / ALL inline tipfilter_values_require_all_tip | Select to show information if ANY or ALL selected filter values of this filter are required | radio | 0 = Hide1 = Show | 0 (Hide) |
Category-based views
Form field
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show filter labeldisplay_label_filter | You can disable filter label or set it to appear at the before (left) of the filter or inside the filter. NOTE: This setting can be overridden in category filtering settings for ALL category filters at once | radio | 0 = No1 = Outside Filter2 = Inside Filter | 2 (Inside Filter) |
Filter Grouping for non-text display typesdate_filter_group | Select the grouping of dates into years or months or days. This is applicable when filter is displayed as drop-down select field (single or range) or as radio/toggle buttons | radio | year = Yearmonth = Monthday = Day | month (Month) |
Filter as Agefilter_as_age | Display filter as age | radio | 0 = No1 = Yes | 0 (No) |
Display date custom formatdate_filter_label_format | e.g. '%Y-%M' will display '2025-August' see docs of SQL function DATE_FORMAT, common: %d Day of the month, numeric (00..31), %b Abbreviated month name (Jan..Dec), %M Month name (January..December), %m Month numeric (00..12), %Y Year numeric, four digits, %y Year numeric (two digits) | text | — | — |
Display Filter asdisplay_filter_as | Select appearance/behavior of the filter | multilist | 0 = Drop-down selector1 = Date picker7 = Slider2 = Drop-down selector (range)3 = Date picker (range)8 = Slider (range)4 = Radio options5 = Checkboxes (multi)6 = Tag-like selector (multi) | 0 (Drop-down selector) |
Faceted Filter values according to ...faceted_filter | Calculate the displayed filter values according to either page configuration or according to active Filters. OPTION: Disable this to show all values and achieve high performance in large sites (more than 10,000 items per category or more than 10,000 items in search index). OPTION: Page configuration is cacheable and will have a small performance impact on first page load (for large sites) -- this option displays filter values by considering only category configuration and/or (category/search view) menu item configuration. OPTION: Active filters is not cacheable and it will have a moderate performance impact on every page load (large sites) when (and if) user activates some filters. -- this option displays filter values by considering everything: alpha-index, text search, field filters, etc, thus offering best user experience. | multilist | 0 = No, show all values (high performance)1 = Page configuration (fast & cacheable)2 = Active filters (best user experience) | 2 (Active filters (best user experience)) |
'Active filters' Faceted Filter (set above)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show matching items per filter valueshow_matching_items | Enable this to append the number of matching items after each filter value. NOTE: this makes no sense when filter is displayed as range or as text input, thus it is not displayed | radio | 0 = No1 = Yes | 1 (Yes) |
Unavailable values for faceted filter using active filtershide_disabled_values | Select to EITHER disable OR hide the non-available values. NOTE: This effects values that are non-available due to active filters. NOTE: This work only if you are displaying filter values according to active filters (above) | radio | 0 = Disable1 = Hide | 0 (Disable) |
Drop-down selector
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Customize default option (all values)filter_usefirstoption | Enable to customize the first option of the filter (=all values) . NOTE: this is used only in the case of Drop-Down Select, and also if field label is not placed inside the selector | multilist | 0 = No1 = Yes | 0 (No) |
Default Option Text (e.g. All colours)filter_firstoptiontext | Text of first option of the Drop-Down Select e.g. 'All colours' or FLEXI_ALL etc. NOTE: This option has no value NOTE: This text is language-filtered so you can enter a language replaceable string | text | — | FLEXI_ALL (All) |
Slider
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Slider dataslider_display_config | Either use found field values, or specify your custom range of values | multilist | 1 = Found values2 = Custom values | 1 (Found values) |
Custom valuesslider_custom_range | Custom range of values, please use values that exist in the field !, for format, see example format, enter comma separated values: percentage%: 'value', and instead of 0% or 100%, you must use 'min': 'value' and 'max':'min': 'value' | textarea | — | 'min': '', '25%': '2000', '50%': '2005', '75%': '2020', 'max': '' |
Custom labelsslider_custom_labels | Custom labels to match the values, please enter a ## separated labels without start/end quotes | textarea | — | label_any ## label_2000 ## label_2005 ## label_2020 ## label_any |
Labels are language stringsslider_custom_labels_jtext | Set this to yes to treat labels as language strings, remember to add these to your Joomla language overrides manager or in other loaded language files | radio | 0 = No1 = Yes | 0 (No) |
Prefix / Suffix
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Every value prefixpretext_filter | This text is placed immediately before every field value | text | — | — |
Every value suffixposttext_filter | This text is placed immediately after every field value | text | — | — |
Opening text for Fieldopentag_filter | This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Closing text for Fieldclosetag_filter | This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Advanced Search View
Form field
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show filter labeldisplay_label_filter_s | You can disable filter label or set it to appear at the before (left) of the filter or inside the filter. NOTE: This setting can be overridden in category filtering settings for ALL category filters at once | radio | 0 = No1 = Outside Filter2 = Inside Filter | 2 (Inside Filter) |
Filter Grouping for non-text display typesdate_filter_group_s | Select the grouping of dates into years or months or days. This is applicable when filter is displayed as drop-down select field (single or range) or as radio/toggle buttons | radio | year = Yearmonth = Monthday = Day | month (Month) |
Filter as Agefilter_as_age_s | Display filter as age | radio | 0 = No1 = Yes | 0 (No) |
Display date custom formatdate_filter_label_format_s | e.g. '%Y-%M' will display '2025-August' see docs of SQL function DATE_FORMAT, common: %d Day of the month, numeric (00..31), %b Abbreviated month name (Jan..Dec), %M Month name (January..December), %m Month numeric (00..12), %Y Year numeric, four digits, %y Year numeric (two digits) | text | — | — |
Display Filter asdisplay_filter_as_s | Select appearance/behavior of the filter | multilist | 0 = Drop-down selector1 = Date picker7 = Slider2 = Drop-down selector (range)3 = Date picker (range)8 = Slider (range)4 = Radio options5 = Checkboxes (multi)6 = Tag-like selector (multi) | 0 (Drop-down selector) |
Faceted Filter values according to ...faceted_filter_s | Calculate the displayed filter values according to either page configuration or according to active Filters. OPTION: Disable this to show all values and achieve high performance in large sites (more than 10,000 items per category or more than 10,000 items in search index). OPTION: Page configuration is cacheable and will have a small performance impact on first page load (for large sites) -- this option displays filter values by considering only category configuration and/or (category/search view) menu item configuration. OPTION: Active filters is not cacheable and it will have a moderate performance impact on every page load (large sites) when (and if) user activates some filters. -- this option displays filter values by considering everything: alpha-index, text search, field filters, etc, thus offering best user experience. | multilist | 0 = No, show all values (high performance)1 = Page configuration (fast & cacheable)2 = Active filters (best user experience) | 2 (Active filters (best user experience)) |
'Active filters' Faceted Filter (set above)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show matching items per filter valueshow_matching_items_s | Enable this to append the number of matching items after each filter value. NOTE: this makes no sense when filter is displayed as range or as text input, thus it is not displayed | radio | 0 = No1 = Yes | 1 (Yes) |
Unavailable values for faceted filter using active filtershide_disabled_values_s | Select to EITHER disable OR hide the non-available values. NOTE: This effects values that are non-available due to active filters. NOTE: This work only if you are displaying filter values according to active filters (above) | radio | 0 = Disable1 = Hide | 0 (Disable) |
Drop-down selector
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Customize default option (all values)filter_usefirstoption_s | Enable to customize the first option of the filter (=all values) . NOTE: this is used only in the case of Drop-Down Select, and also if field label is not placed inside the selector | multilist | 0 = No1 = Yes | 0 (No) |
Default Option Text (e.g. All colours)filter_firstoptiontext_s | Text of first option of the Drop-Down Select e.g. 'All colours' or FLEXI_ALL etc. NOTE: This option has no value NOTE: This text is language-filtered so you can enter a language replaceable string | text | — | FLEXI_ALL (All) |
Slider
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Slider dataslider_display_config_s | Either use found field values, or specify your custom range of values | multilist | 1 = Found values2 = Custom values | 1 (Found values) |
Custom valuesslider_custom_range_s | Custom range of values, please use values that exist in the field !, for format, see example format, enter comma separated values: percentage%: 'value', and instead of 0% or 100%, you must use 'min': 'value' and 'max':'min': 'value' | textarea | — | 'min': '', '25%': 2000, '50%': 2005, '75%': 2020, 'max': '' |
Custom labelsslider_custom_labels_s | Custom labels to match the values, please enter a ## separated labels without start/end quotes | textarea | — | label_any ## label_2000 ## label_2005 ## label_2020 ## label_any |
Labels are language stringsslider_custom_labels_jtext_s | Set this to yes to treat labels as language strings, remember to add these to your Joomla language overrides manager or in other loaded language files | radio | 0 = No1 = Yes | 0 (No) |
Prefix / Suffix
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Every value prefixpretext_filter_s | This text is placed immediately before every field value | text | — | — |
Every value suffixposttext_filter_s | This text is placed immediately after every field value | text | — | — |
Opening text for Fieldopentag_filter_s | This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Closing text for Fieldclosetag_filter_s | This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |