Parameters type
select article modal
<param name=”id” type=”article” default=”0″ label=”Select Article” description=”An article” />
Text
<field name=”num_leading_articles” type=”text” default=”1″ label=”JGLOBAL_NUM_LEADING_ARTICLES_LABEL”
description=”JGLOBAL_NUM_LEADING_ARTICLES_DESC”>
</field>
Editor for Module
<param name=”contentofmodal” label =”Content Of Modal” type=”editor” filter=”safehtml” width=”300″ height=”500″ />
add some codes in
<?php
// Check to ensure this file is within the rest of the framework
defined(‘JPATH_BASE’) or die();
class JElementMyeditor extends JElement
{
var $_name = ‘Myeditor’;
function fetchElement($name, $value, &$node, $control_name)
{
$editor = JFactory::getEditor();
$width = $node->attributes(‘width’);
$height = $node->attributes(‘height’);
$col = $node->attributes(‘col’);
$row = $node->attributes(‘row’);
// ($name, $html, $width, $height, $col, $row, $buttons = true, $params = array())
return $editor->display($control_name.'[‘.$name.’]’,
htmlspecialchars($value, ENT_QUOTES),
$width, $height, $col, $row,
array(‘pagebreak’, ‘readmore’) ) ;
}
}
Radio
<field name=”show_category_title” type=”radio” label=”JGLOBAL_SHOW_CATEGORY_TITLE”
description=”JGLOBAL_SHOW_CATEGORY_TITLE_DESC” default=”1″ >
<option value=”0″>JHIDE</option>
<option value=”1″>JSHOW</option>
</field>
User List
<field name=”targetb” type=”list” label=”COM_CONTENT_URL_FIELD_B_BROWSERNAV_LABEL”
description=”COM_CONTENT_URL_FIELD_BROWSERNAV_DESC” class=”inputbox”>
<option value=”0″>JBROWSERTARGET_PARENT</option>
<option value=”1″>JBROWSERTARGET_NEW</option>
<option value=”2″>JBROWSERTARGET_POPUP</option>
<option value=”3″>JBROWSERTARGET_MODAL</option>
</field>
For Space
<field name=”spacer4″ type=”spacer” hr=”true” />
Component Layout
<field name=”category_layout” type=”componentlayout” label=”JGLOBAL_FIELD_LAYOUT_LABEL”
description=”JGLOBAL_FIELD_LAYOUT_DESC” menuitems=”true” extension=”com_content” view=”category” />
Acces Permission (acl)
<field name=”rules” type=”rules” label=”JCONFIG_PERMISSIONS_LABEL” class=”inputbox” validate=”rules”
filter=”rules” component=”com_content” section=”component” />
Category drop down for article admin
<field name=”catid” type=”categoryedit” label=”JCATEGORY” description=”JFIELD_CATEGORY_DESC” class=”inputbox” required=”true” >
</field>
Editor in article
<field name=”articletext” type=”editor”
label=”COM_CONTENT_FIELD_ARTICLETEXT_LABEL” description=”COM_CONTENT_FIELD_ARTICLETEXT_DESC”
filter=”JComponentHelper::filterText” buttons=”true” />
Calendar
<field name=”created” type=”calendar” label=”COM_CONTENT_FIELD_CREATED_LABEL”
description=”COM_CONTENT_FIELD_CREATED_DESC” size=”22″ format=”%Y-%m-%d %H:%M:%S” filter=”user_utc” />
User
<field name=”created_by” type=”user” label=”COM_CONTENT_FIELD_CREATED_BY_LABEL” description=”COM_CONTENT_FIELD_CREATED_BY_DESC” />
Multiple Users
<field name=”multiauthor” type=”sql” query=”SELECT id ,name FROM #__users” multiple=”multiple” key_field=”id” value_field=”name” label=”Multiple Authors” description=”Select Multiple users in case of more than one author for an article” onchange=”javascript:quotePricing(this);”/>
Texta Area
<field name=”metakey” type=”textarea”
label=”JFIELD_META_KEYWORDS_LABEL” description=”JFIELD_META_KEYWORDS_DESC”
class=”inputbox” rows=”3″ cols=”30″ />
Access Level
<field name=”access” type=”accesslevel” label=”JFIELD_ACCESS_LABEL” description=”JFIELD_ACCESS_DESC” size=”1″ />
Input Box
<field name=”alternative_readmore” type=”inputbox” label=”JFIELD_READMORE_LABEL” description=”JFIELD_READMORE_DESC”
class=”inputbox” size=”25″ />
Hidden
<field name=”show_parent_category” type=”hidden” label=”JGLOBAL_SHOW_PARENT_CATEGORY_LABEL”
description=”JGLOBAL_SHOW_PARENT_CATEGORY_DESC”>
</field>
Open Media
<field name=”image_intro” type=”media” label=”COM_CONTENT_FIELD_INTRO_LABEL” description=”COM_CONTENT_FIELD_INTRO_DESC” />
Url
<field name=”urla” type=”url” validate=”url” filter=”url” label=”COM_CONTENT_FIELD_URLA_LABEL” description=”COM_CONTENT_FIELD_URL_DESC” />
Standard form field types/Single-page reference
http://docs.joomla.org/Standard_form_field_types/Single-page_reference