Difference between revisions of "Modulelayout form field type"

From Joomla! Documentation

(Marked for translation)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<noinclude><languages /></noinclude>
 
<noinclude><languages /></noinclude>
<translate>The '''modulelayout''' form field type provides a drop down list of all available layouts for a module, grouped by core and template.  If the parameter has a saved value this is selected when the page is first loaded.  If not, the default value (if any) is selected.</translate>   
+
<translate><!--T:1-->
 +
The '''modulelayout''' form field type provides a drop down list of all available layouts for a module, grouped by core and template.  If the parameter has a saved value this is selected when the page is first loaded.  If not, the default value (if any) is selected.</translate>   
  
<translate>* '''type''' (mandatory) must be modulelayout.</translate>
+
<translate><!--T:2-->
<translate>* '''name''' (mandatory) is the unique name of the parameter.</translate>
+
* '''type''' (mandatory) must be ''modulelayout''.</translate>
<translate>* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
+
<translate><!--T:3-->
<translate>* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.</translate>
+
* '''name''' (mandatory) is the unique name of the parameter.</translate>
 +
<translate><!--T:4-->
 +
* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
 +
<translate><!--T:5-->
 +
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.</translate>
  
<translate>Example XML parameter definition:</translate>
+
<translate><!--T:6-->
 +
Example XML parameter definition:</translate>
 
<source lang="xml"><field name="mymodulelayout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" /></source>
 
<source lang="xml"><field name="mymodulelayout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" /></source>
  
 
<translate>
 
<translate>
=== See also ===
+
=== See also === <!--T:7-->
 
</translate>
 
</translate>
<translate>* [[S:MyLanguage/Standard form field types|List of standard form field types]]</translate>
+
<translate><!--T:8-->
 +
* [[S:MyLanguage/Standard form field types|List of standard form field types]]</translate>
  
<noinclude><translate>[[Category:Standard form field types]]</translate></noinclude>
+
<noinclude><translate><!--T:9-->
 +
[[Category:Standard form field types]]</translate></noinclude>

Revision as of 09:48, 10 September 2015

Other languages:
English • ‎Nederlands • ‎español • ‎français

The modulelayout form field type provides a drop down list of all available layouts for a module, grouped by core and template. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.

  • type (mandatory) must be modulelayout.
  • name (mandatory) is the unique name of the parameter.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.

Example XML parameter definition:

<field name="mymodulelayout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" />

See also[edit]