-
Notifications
You must be signed in to change notification settings - Fork 13
create:field:playa
Create a Playa field.
$ eecli create:field:playa <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 site(s) to relate (Leave blank to allow all). You may use this option more than once to provide multiple values.
ID or name of channel(s) to relate (Leave blank to allow all). You may use this option more than once to provide multiple values.
Show expired entries.
Show future entries.
Show entries that are editable by the current user.
ID of category(s) to show (Leave blank to allow all). You may use this option more than once to provide multiple values.
ID of author(s) to show (Leave blank to allow all). You may use this option more than once to provide multiple values.
ID of authored by member group(s) to show (Leave blank to allow all). You may use this option more than once to provide multiple values.
Stasus(es) to show (Leave blank to allow all). You may use this option more than once to provide multiple values.
Limit. Default: 100.
title or entry_date. Default: title.
asc or desc. Default: asc.
Allow multiple relationships?
Create a Playa field in field group 1
$ eecli create:field:playa "Your Field Name" your_field_name 1
Create a Playa field with multiple channels
$ eecli create:field:playa --channel=1 --channel=blog "Your Field Name" your_field_name 1
Create a Playa field with multiple statuses
$ eecli create:field:playa --status=closed --status=open "Your Field Name" your_field_name 1
Create a Playa field with multiple selection
$ eecli create:field:playa --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