-
Notifications
You must be signed in to change notification settings - Fork 13
create:field:file
Rob Sanchez edited this page Mar 7, 2015
·
3 revisions
Create a File field.
$ eecli create:field:file <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.
all or image. Default: all.
ID of upload dir. Default: all.
Hide existing files in a Channel Form?
How many existing files to show in a Channel Form? Default: 50.
Create a File field in field group 1
$ eecli create:field:file "Your Field Name" your_field_name 1
Create a File field that uploads to directory 1
$ eecli create:field:file --upload_dir=1 "Your Field Name" your_field_name 1
Create a File field that only allows images
$ eecli create:field:file --content_type=image "Your Field Name" your_field_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