-
Notifications
You must be signed in to change notification settings - Fork 13
create:field:text
Create a Text field.
$ eecli create:field:text <label> <short_name> <field_group>
The label of the field.
The short name of the field.
The ID or name of the field group.
Instructions for authors on how or what to enter into this field when submitting an entry.
Make this field required.
Make this field searchable.
Make this field hidden.
Set this field's order.
How long should the maxlength be? Default: 128.
none, br, or xhtml. Default: none.
Show formatting dropdown on publish page.
ltr or rtl. Default: ltr.
all, numeric, integer, or decimal.
Show smileys?
Show glossary?
Show spellcheck?
Show file selector?
Create a Text field in field group 1
$ eecli create:field:text "Your Field Name" your_field_name 1
Create a Text field of maxlength 255
$ eecli create:field:text --max_length=255 "Name" name 1
Create a Text field with format xhtml (none, br, or xhtml)
$ eecli create:field:text --format=xhtml "Name" name 1
Create a Text field with format selectable on the publish page
$ eecli create:field:text --show_format "Name" name 1
Create a Text field with RTL text direction
$ eecli create:field:text --text_direction=rtl "Name" name 1
Create a Text field with a content type (all, numeric, integer, or decimal)
$ eecli create:field:text --content_type=decimal "Name" name 1
Create a Text field with the smileys button
$ eecli create:field:text --show_smileys "Name" name 1
Create a Text field with the glossary button
$ eecli create:field:text --show_glossary "Name" name 1
Create a Text field with the spellcheck button
$ eecli create:field:text --show_spellcheck "Name" name 1
Create a Text field with the file selector button
$ eecli create:field:text --show_file_selector "Name" name 1
- create:category
- create:category_group
- create:channel
- create:field:<fieldtype>
- create:field_group
- create:global_variable
- create:member
- create:member_group
- create:snippet
- create:status
- create:status_group
- create:template
- create:template_group
- create:upload_pref