Textarea
Textarea Field Plugin for FLEXIcontent
:::info Source
This page is generated from plugins/flexicontent_fields/textarea/textarea.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) |
Values Creation
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Defaultdefault_value | Set a default property value to be loaded when editing field in item form and/or when displaying field in item/category/etc views | textarea | — | — |
Usage of defaultdefault_value_use | Select when these default property value will be used | list | 0 = Load when editing new items, (requires saving)1 = Load when editing all items, (requires saving)2 = The above & also display it instead of empty | 0 (Load when editing new items, (requires saving)) |
Server-Side validationvalidation | Allow input to be safe HTML tags, OR plain text, OR use Joomla's Text Filters (set per usergroup in Joomla global configuration), etc ..., never allow UNSAFE HTML for public forms, but if you do you should enable 'encode on display' parameter | groupedlist | Per user2 = Joomla's Text Filters (per usergroup)HTML / Text 1 = SAFE HTML : remove dangerous tags/attributesRAW = UNSAFE HTML (raw HTML) : ... MAYBE: encode on displaySTRING = TEXT : decode HTML entities, strip HTML tagsHTML = TEXT or ENCODED HTML: allow entities, strip tags | 2 (Joomla's Text Filters (per usergroup)) |
Automatic value creation
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 | radio | 0 = No1 = Floated left2 = Cleared | 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 | — | — |
Layout
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Fields layoutformlayout | 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/field_*.php as field_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modify | fcfilelist | — | default |
Editoruse_html | Use an HTML (WYSIWYG) editor or display a simple textarea | multilist | 1 = HTML Editor0 = Simple Textarea | 0 (Simple Textarea) |
Simple Textarea
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Field attributesextra_attributes | Here you can enter some extra attributes (HTML Tag Parameters) for the form field like e.g. onkeypress="..." onmouseover="..." somename="somevalue". Take care not to break the the HTML syntax of the form field | text | — | — |
Placeholderplaceholder | A word / short text, displayed inside the input, until the user starts typing. This can be a language string | text | — | — |
Maximum Text Lengthmaxlength | Maximum number of characters allowed during user input | text | — | — |
Rowsrows | Number of rows | text | — | 3 |
Columnscols | Number of columns | text | — | 80 |
HTML Editor
NOTE: about multi-value support Only editors based on: tinyMCE** (built-in or 3rd party) and CodeMirror are supported, otherwise the HTML editor on new values will appear only after saving
NOTE: prefer to use Joomla default editor setting (3rd party or built-in) Adding 2 different editors on same page may break XTD editor buttons like read-more
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
HTML Editoreditor | You can use an HTML Editor to edit the field | plugins | — = Joomla's default | — |
Editor widthwidth | HTML editor width | text | — | 98% |
Editor heightheight | HTML editor height | text | — | 250px |
Extra (editor) buttons
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Showshow_buttons | You can disable all editor buttons that offer extra functionality (usually displayed at footer) | multilist | 0 = No1 = Yes | 0 (No) |
Skip buttons (some editors *)skip_buttons | Select to disable individual buttons. NOTE: not all editors support this, e.g. supported for tinyMCE and possibly by other editors | pluginlist | — | — |
Import
Manipulate values during import
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 | fcfilelist | — | default |
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 | — | — |
Language filter valueslang_filter_values | Apply language filter JText::_() on the values, the values must be language strings, either added in a language file, or added by Joomla language overrides manager | radio | 0 = No1 = Yes | 0 (No) |
Encode values (XSS safe, visible HTML/JS)encode_output | Encode any HTML/JS inside the values this makes any HTML/JS code to become visible, thus values become XSS safe (cross site scripting). NOTE: enable this, - if you suspect that XSS unsafe values may have been added to the field by older field configurations, - or if you are want to display HTML code that is not already encoded as HTML entities | radio | 0 = No1 = Yes | 0 (No) |
Clean values (e.g. strip HTML / JS)clean_output | You can take an extra step to clean any unsafe or undesired HTML inside the values, NOTE: enable this, - if you suspect that XSS unsafe HTML, or undesired HTML formating may have been added to the field by older field configurations | radio | 0 = No1 = Unsafe HTML2 = ALL HTML | 0 (No) |
Category views
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Strip HTML, cut textcut_text_catview | Strip HTML tags from the text and also cut it to a maximum length | multilist | 0 = No1 = Yes | 0 (No) |
Character limitcut_text_length_catview | Any characters over the limit (starting at next word) will be cut off | text | — | 200 |
Toggle all textcut_text_display_catview | Enable this to allow showing all text | multilist | 0 = No1 = Inline2 = Modal window | 0 (No) |
Button iconcut_text_display_btn_icon_catview | — | text | — | icon-paragraph-center |
Button textcut_text_display_btn_text_catview | — | text | — | — |
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) | — |
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: 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 | — | — |
Social
Social websites support (e.g. Facebook)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Suggest field to listingsuseogp | Select to suggest (force) text to appear in social website image listings as description | multilist | 0 = No1 = Yes | 0 (No) |
Use field asogpusage | Select how to use field in the listings | radio | 1 = Title2 = Description | 1 (Title) |
Max Text Lengthogpmaxlen | Enter the maximum number of characters to use after stripping HTML | text | — | 300 |
Filtering
Parameters used for filtering in (a) Category-based views , (b) search view
Filtering
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) |
Display Filter asdisplay_filter_as | Select appearance/behavior of the filter | multilist | 1 = Text Search | 0 |
Advanced Search View
| 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) |
Display Filter asdisplay_filter_as_s | Select appearance/behavior of the filter | multilist | 1 = Text Search | 0 |
Filtering
Tabs (RegEx)
Split textarea into TABs via regular expression
Parse joomla tabs plugin code
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enableeditorarea_per_tab | Enable to try to identify TABs via regex patterns | multilist | 0 = No1 = Yes | 0 (No) |
Regular expression patterns
Tabset patterns
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Tab-set startstart_of_tabs_pattern | Regular expression to much plugin code | text | — | — |
Tab-set endend_of_tabs_pattern | Regular expression to much plugin code | text | — | — |
Tab patterns
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Tab startstart_of_tab_pattern | Regular expression to much plugin code | text | — | — |
Tab endend_of_tab_pattern | Regular expression to much plugin code | text | — | — |
Inside tab start text
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Tab titletitle_tab_pattern | Title should be inside TAB start code, this is regular expression to much inside title text inside it | text | — | — |
Extra editor areas
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Before tabsetforce_beforetabs | Add extra editor area | multilist | 0 = Automatic1 = Always | 1 (Always) |
After tabsetforce_aftertabs | Add extra editor area | multilist | 0 = Automatic1 = Always | 1 (Always) |
Tab code editableallow_tabs_code_editing | This will allow editting of TAB-set TAB code inside the item from | radio | 0 = No1 = Yes | 1 (Yes) |