-
Notifications
You must be signed in to change notification settings - Fork 13
create:field:assets
Rob Sanchez edited this page Mar 9, 2015
·
4 revisions
Create an Assets field.
$ eecli create:field:assets <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.
ID of upload dir (Leave blank for all). You may use this option more than once to provide multiple values.
thumbs or list. Default: thumbs.
small or large. Default: small.
Show filenames?
Allow multiple selections.
Create an Assets field in field group 1
$ eecli create:field:assets "Your Field Name" your_field_name 1
Create an Assets field that uploads to EE directory 1
$ eecli create:field:assets --upload_dir="ee:1" "Your Field Name" your_field_name 1
Create an Assets field that uploads to S3 directory 2
$ eecli create:field:assets --upload_dir="s3:2" "Your Field Name" your_field_name 1
Create an Assets field that allows multiple selections
$ eecli create:field:assets --multiple "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