Difference between revisions of "Accesslevel form field type"
From Joomla! Documentation
(Fix attribute to fix page syntax error) |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <noinclude><languages /></noinclude> | |
+ | <translate><!--T:1--> | ||
+ | Provides a dropdown list of accesslevel options with the current option selected.</translate> | ||
− | * '''name''' (mandatory) is the unique name of the parameter. | + | <translate><!--T:2--> |
− | * '''type''' (mandatory) must be ''accesslevel''. | + | * '''name''' (mandatory) is the unique name of the parameter.</translate> |
− | * '''label''' (mandatory) (translatable) is the descriptive title of the field. | + | <translate><!--T:3--> |
− | * '''description''' description text for the form field. | + | * '''type''' (mandatory) must be ''accesslevel''.</translate> |
− | * '''class''' additional classes to set style. | + | <translate><!--T:4--> |
+ | * '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate> | ||
+ | <translate><!--T:5--> | ||
+ | * '''description''' description text for the form field.</translate> | ||
+ | <translate><!--T:6--> | ||
+ | * '''class''' additional classes to set style.</translate> | ||
+ | <translate> | ||
+ | <!--T:10--> | ||
+ | * '''multiple''' (optional) is whether multiple items can be selected at the same time (''true'' or ''false''). | ||
+ | </translate> | ||
+ | <translate> | ||
+ | <!--T:11--> | ||
+ | * '''useglobal''' (optional) if set to true, it will show the value that is set in the global configuration if found in the database. | ||
+ | </translate> | ||
− | Example XML Definition | + | <translate><!--T:7--> |
− | <source | + | Implemented by:</translate> libraries/joomla/form/fields/access.php |
+ | |||
+ | <translate><!--T:8--> | ||
+ | Example XML Definition:</translate> | ||
+ | <source lang="xml"> | ||
<field name="access" type="accesslevel" | <field name="access" type="accesslevel" | ||
label="JFIELD_ACCESS_LABEL" | label="JFIELD_ACCESS_LABEL" | ||
Line 15: | Line 34: | ||
</source> | </source> | ||
+ | <noinclude> | ||
+ | <translate> | ||
+ | <!--T:9--> | ||
[[Category:Standard form field types]] | [[Category:Standard form field types]] | ||
+ | </translate> | ||
+ | </noinclude> |
Latest revision as of 17:00, 14 May 2019
Provides a dropdown list of accesslevel options with the current option selected.
- name (mandatory) is the unique name of the parameter.
- type (mandatory) must be accesslevel.
- label (mandatory) (translatable) is the descriptive title of the field.
- description description text for the form field.
- class additional classes to set style.
- multiple (optional) is whether multiple items can be selected at the same time (true or false).
- useglobal (optional) if set to true, it will show the value that is set in the global configuration if found in the database.
Implemented by: libraries/joomla/form/fields/access.php
Example XML Definition:
<field name="access" type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
class="span12 small" />