Поискав в Интернете список типов полей для joomla, я не нашел ни одного конкретного места, где можно было бы найти весь список. Итак, я решил написать этот пост, чтобы дать полный список полей JForm для Joomla. В Joomla действительно доступно множество типов полей, но вы можете запрограммировать конкретный тип, если не найдете нужный тип.

Accesslevel

<field name=”access” type=”accesslevel” label=”ACCESS_LEVEL_LABEL” description=”ACCESS_LEVEL_DESC” class=”span8″ size=”1″ />

 

Accesslevel


Cachehandler

<field name=”cache_handler” type=”cachehandler” default=”” label=”CACHE_HANDLER_LABEL” description=”CACHE_HANDLER_DESC” filter=”word”>
</field>

 

Cache Handler


Calendar

<field name=”created_date” type=”calendar” label=”CALENDER_LABEL” description=”CALENDER_DESC” class=”inputbox” size=”19″ format=”%Y-%m-%d %H:%M:%S” filter=”user_utc” />

 

JFoem Calander


Category

<field name=”catiegoryd” type=”category” extension=”com_content” label=”CATEGORY_LABEL” description=”CATEGORY_DESC”  class=”inputbox”>
</field>

 

jForm Field Category


Checkbox

<field name=”checkbox” type=”checkbox” class=”inputbox” label=”CHECKBOX_LABEL” description=”CECKBOX_DESC” value=”true” filter=”boolean” />

 

Joomla jForm Checkbox


Checkboxes

<field  name=”fruits” type=”checkboxes” class=”inputbox” label=”CHECKBOXES_LABEL” description=”CHECKBOXES_DESC” value=”true” filter=”boolean”>
<option value=”apple”>Apple</option>
<option value=”orange”>Orange</option>
<option value=”banana”>Banana</option>
</field>

 

checkboxes


ColorPicker

<field name=”colorpicker” type=”color” default=”#ccc”  label=”COLOR_PICKER_LABEL” description=”COLOR_PICKER_DESC” />

 

Color Picker


Combo

<field name="myeditbox" type="combo" label="MyEditBox" description="myeditbox_Desc" size="7">
  <option value="1">Option 1</option>
  <option value="2">Option 3</option>
</field>

Поле на выходе выглядит примерно так.

Componentlayout

<field  name=”clayout” type=”componentlayout”  extension=”com_user” view=”register” label=”COMPONENT_LAYOUT_LABEL” useglobal=”true”  description=”COMPONENT_LAYOUT_DESC” />

 

Componentlayout


Language

<field name=”language” type=”contentlanguage” label=”LANGUAGE_LABEL” description=”LANGUAGE_DESC” class=”inputbox”>
<option value=”*”>JALL</option>
</field>

 

language


Contenttype

<field name=”ctypes” type=”contenttype” description=”CONTENT_TYPE_DESC” label=”CONTENT_TYPE_LABEL” multiple=”true” />

Contenttype

 

Databaseconnection

<field name=”dbtype” type=”databaseconnection” label=”DATABASE_TYPE_LABEL” description=”DATABASE_TYPE_DESC” supported=”mysql,mysqli,postgresql,sqlsrv” filter=”string” />

 

Database connection


Editor

<field name=”description” type=”editor” buttons=”true” hide=”pagebreak,readmore” class=”inputbox” filter=”JComponentHelper::filterText” label=”DESCRIPTION_LABEL” description=”DESCRIPTION_DESC” />

 

editor


Email

<field name=”email” type=”email” class=”inputbox” label=”EMAIL_LABEL” description=”EMAIL_DESC” required=”true” size=”30″ validate=”email”/>

 

email


File

<field  name=”file”  type=”file”  label=”FILE_LABEL” description=”FILE_DESC” size=”25″  accept=”image/*” />

 

jForm Field File


Filelist

<field  name=”filelist”  type=”filelist” default=””  label=”FILELIST_LABEL”  description=”FILELIST_DESC” directory=”libraries/joomla/form/fields”  filter=”” stripext=””  exclude=”” />

 

jForm File list


Folderlist

<field  name=”folderlist”  type=”folderlist” default=”” label=”FOLDERLIST_LABEL”description=”FOLDERLIST_DESC”directory=”administrator” filter=”” stripext=”” exclude=”” />

 

jForm Folder List


Groupedlist

<field  name=”languages” type=”groupedlist” default=”” label=”GROUPED_LIST_LABEL” description=”GROUPED_LIST_DESC”>
<group label=”Desktop”>
<option value=”java”>Java</option>
<option value=”cplus”>C++</option>
<option value=”vb”>VB</option>
</group>
<group label=”Web”>
<option value=”php”>PHP</option>
<option value=”cf”>Cold Fusion</option>
</group>
</field>

 

jForm Grouped List


Headertag

<field name=”htag” type=”headertag” default=”h4″ label=”HEADER_TAG_LABEL” description=”HEADER_TAG_DESC”/>

 

jForm Header Tag


Helpsite

<field name=”helpsite” type=”helpsite” label=”HELPSITE_LABEL” description=”HELPSITE_DESC”>
<option value=””>JOPTION_USE_DEFAULT</option>
</field>

 

jForm Help Site


Hidden

<field name=”catid” type=”hidden”  filter=”unset”/>

 


Imagelist

<field  name=”imagelist”  type=”imagelist”  default=”” label=”IMAGE_LABEL”  description=”IMAGE_DESC” directory=”images” exclude=”” stripext=”” />

 

jForm Image List


Integer

<field  name=”integer”  type=”integer”  default=””  label=”INTEGER_LABEL”  description=”INTEGER_DESC”  first=”1″  last=”10″  step=”1″ />

 

jForm Integer List


Language

<field name=”language” type=”language” client=”administrator” description=”LANGUAGE_DESC” label=”LANGUAGE_LABEL”>
<option value=””>JOPTION_USE_DEFAULT</option>
</field>

 

jForm Language


List

<field name=”fsecond” type=”list” label=”LIST_LABEL” description=”LIST_DESC”>
<option value=””>SELECT_FRUIT</option>
<option value=”apple”>APPLE</option>
<option value=”banana”>BANANA</option>
<option value=”mango”>MANGO</option>
</field>

 

jForm List


Media

<field name=”image” type=”media” directory=”story” hide_none=”1″ label=”_IMAGE_LABEL” size=”40″ description=”IMAGE_DESC” />

 

jForm media

jForm media popup


Menu

<field name=”menutype” type=”menu” label=”MENU_LABEL” description=”MEU_DESC” class=”inputbox” required=”true” size=”1″ />

 

jForm Menu


Menuitem

<field name=”menuitem” type=”menuitem” label=”MENUITEM_LABEL” description=”MENUITEM_DESC” required=”true” />

 

jForm Menu Item


Password

<field name=”password” type=”password” autocomplete=”off” class=”inputbox validate-password” description=”PASSWORD_DESC” filter=”raw” label=”PASSWORD_LABEL” size=”30″ validate=”equals”/>

 

jForm Password


Radio

<field name=”title” type=”radio” class=”btn-group” label=”TITLE_LABEL” description=”TITLE_DESC” labelclass=”control-label”>
<option value=””>JGLOBAL_USE_GLOBAL</option>
<option value=”0″>JHIDE</option>
<option value=”1″>JSHOW</option>
</field>

 

Joomla jForm Radio field


Rules

<field id=”rules”  name=”rules” type=”rules”label=”RULES_LABEL” description=”RULES_DESC” translate_label=”false” filter=”rules” validate=”rules” class=”inputbox” component=”com_users” section=”component”/>

 

Joomla jForm Rules field


Sessionhandler

<field name=”sessionhandler” type=”sessionhandler”  default=”none” label=”SESSION_HANDLER_LABEL”  description=”SESSION_HANDLER_DESC” required=”true” filter=”word” />

 

Joomla jForm Session field


Spacer

<field  name=”buttonspacer” label=”SPACER_LABEL” description=”SPACER_DESC” type=”spacer” />

 


Tag

<field name=”tags” type=”tag” label=”TAG_LABEL” description=”TAG_DESC” class=”inputbox” multiple=”true”>
</field>

 

Joomla jForm tag field


Tel

<field name=”phone” type=”tel” id=”phonenum” description=”PHONE_DESC” filter=”string” label=”PHONE_LABEL” size=”30″ required=”true” validate=”tel”/>

 

Joomla jFormphone type


Text

<field name=”text” type=”text” class=”inputbox” size=”40″ label=”TEXT_LABEL” description=”TEXT_DESC” required=”true” />

 

Joomla jForm text field


Textarea

<field name=”address” type=”textarea” class=”inputbox” rows=”4″ cols=”25″ label=”ADDRESS_LABEL” description=”ADDRESS_DESC” />

 


Timezone

<field name=”timezone” type=”timezone” default=”UTC” label=”TIMEZONE_LABEL” description=”TIMEZONE_DESC” required=”true”> <option value=”UTC”>JLIB_FORM_VALUE_TIMEZONE_UTC</option>
</field>

 

Joomla jForm Time Zone field


Url

<field  name=”url” type=”url” class=”inputbox” filter=”url” label=”URL_LABEL”  description=”URL_DESC” required=”true” validate=”url” />

 

Joomla jForm URL field


User

<field name=”created_by” type=”user” label=”CREATED_LABEL”  description=”CREATED_DESC” />

 

Joomla jForm user field


Usergroup

<field name=”usergroup” type=”usergroup” default=”0″ description=”USER_GROUP_DESC” label=”USER_GROUP_LABEL”size=”12″>
<option value=”0″>USERS_GROUPS</option>
</field>

 

Joomla jForm user group type

 

Оригинал: https://www.codingace.com/joomla/joomla-jform-field-types