Actions

Difference between revisions of "Timezone form field type"

From Joomla! Documentation

(Created page for form field type)
 
(Marked this version for translation)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude><languages /></noinclude>
 +
<translate><!--T:1-->
 +
The '''timezones''' form field type provides a drop down list of time zones. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.</translate>
 
[[Image:Params.timezones.jpg|right]]
 
[[Image:Params.timezones.jpg|right]]
 +
<translate><!--T:2-->
 +
* '''type''' (mandatory) must be ''timezone''.</translate>
 +
<translate><!--T:3-->
 +
* '''name''' (mandatory) is the unique name of the field.</translate>
 +
<translate><!--T:4-->
 +
* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
 +
<translate><!--T:5-->
 +
* '''default''' (optional) (translatable) is the default time zone. For example, use '-10' for '(UTC -10:00) Hawaii'.</translate>
 +
<translate><!--T:6-->
 +
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.</translate>
  
{{Ambox|type=notice|text=In Joomla! 1.5, [[Form field|form fields]] were [[Parameter|parameters]]. For that version, you may want to use the corresponding [[Timezones parameter type]].}}
+
<translate><!--T:7-->
 +
Example XML field definition:</translate>
 +
<source lang="xml"><field name="mytimezone" type="timezone" default="-10" label="Select a timezone" description="" /></source>
  
The '''timezones''' form field type provides a drop down list of time zones. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.
+
<translate>=== See also === <!--T:8--></translate>
 +
<translate><!--T:9-->
 +
* [[S:MyLanguage/Standard form field types|List of standard form field types]]</translate>
  
* '''type''' (mandatory) must be ''timezone''.
 
* '''name''' (mandatory) is the unique name of the field.
 
* '''label''' (mandatory) (translatable) is the descriptive title of the field.
 
* '''default''' (optional) (translatable) is the default time zone. For example, use '-10' for '(UTC -10:00) Hawaii'.
 
* '''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 field definition:
 
<source lang="xml"><field name="mytimezone" type="timezone" default="-10" label="Select a timezone" description="" /></source>
 
 
<noinclude>
 
<noinclude>
=== See also ===
+
<translate>
* [[Standard form field types|List of standard form field types]]
+
<!--T:10-->
[[Category:Standard form field types]]</noinclude>
+
[[Category:Standard form field types]]
 +
</translate>
 +
</noinclude>

Latest revision as of 16:58, 6 August 2015

Other languages:
English • ‎français

The timezones form field type provides a drop down list of time zones. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.

Params.timezones.jpg
  • type (mandatory) must be timezone.
  • name (mandatory) is the unique name of the field.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • default (optional) (translatable) is the default time zone. For example, use '-10' for '(UTC -10:00) Hawaii'.
  • 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 field definition:

<field name="mytimezone" type="timezone" default="-10" label="Select a timezone" description="" />

See also