Difference between revisions of "DatabaseConnection form field type"
From Joomla! Documentation
(new document) |
m |
||
Line 10: | Line 10: | ||
<source type="xml"> | <source type="xml"> | ||
<field name="dbtype" type="databaseconnection" | <field name="dbtype" type="databaseconnection" | ||
− | + | label="COM_CONFIG_FIELD_DATABASE_TYPE_LABEL" | |
− | + | description="COM_CONFIG_FIELD_DATABASE_TYPE_DESC" | |
− | + | supported="mysql,mysqli,postgresql,sqlsrv,sqlazure" | |
− | + | filter="string" /> | |
</source> | </source> | ||
[[Category:Standard form field types]] | [[Category:Standard form field types]] |
Revision as of 10:19, 15 September 2013
Provides a list of available database connections, optionally limiting to a given list.
- name (mandatory) is the unique name of the parameter.
- type (mandatory) must be contentlanguage.
- label (mandatory) (translatable) is the descriptive title of the field.
- description (optional) (translatable) tooltip for the form field.
Example XML Definition
<field name="dbtype" type="databaseconnection"
label="COM_CONFIG_FIELD_DATABASE_TYPE_LABEL"
description="COM_CONFIG_FIELD_DATABASE_TYPE_DESC"
supported="mysql,mysqli,postgresql,sqlsrv,sqlazure"
filter="string" />