The text form field type provides a text box for data entry. 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.
<field name="mytextvalue"
type="text"
default="Some text"
label="Enter some text"
description=""
size="10" />
Use the integer filter to ensure that letters types get stripped when the form is processed.
<field name="myintvalue"
type="text"
default=""
label="Enter some text"
description="Enter some description"
filter="integer" />
Use the raw filter to ensure that html code is preserved when the form is processed.
<field name="myhtmlvalue"
type="text"
default=""
label="Enter some text"
description="Enter some description"
filter="raw" />
1. Title Field (com_content)
<field
name="title"
type="text"
label="JGLOBAL_TITLE"
description="JFIELD_TITLE_DESC"
class="input-xxlarge input-large-text"
size="40"
required="true"
/>
2, Alias Field (com_content)
<field
name="alias"
type="text"
label="JFIELD_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC"
hint="JFIELD_ALIAS_PLACEHOLDER"
size="40"
/>
3. Note Field (com_content)
<field
name="note"
type="text"
label="COM_CONTENT_FIELD_NOTE_LABEL"
description="COM_CONTENT_FIELD_NOTE_DESC"
class="span12"
size="40"
maxlength="255"
/>
4. Author (com_content)
<field
name="author"
type="text"
label="JAUTHOR"
description="JFIELD_METADATA_AUTHOR_DESC"
size="20"
/>