Skip to content

create:field:grid

Rob Sanchez edited this page Mar 7, 2015 · 4 revisions

Create a Grid field.

$ eecli create:field:grid <label> <short_name> <field_group>

Arguments

label

The label of the field.

short_name

The short name of the field.

field_group

The ID or name of the field group.

Options

--instructions="Your instructions here."

Instructions for authors on how or what to enter into this field when submitting an entry.

--required

Make this field required.

--searchable

Make this field searchable.

--hidden

Make this field hidden.

--order="1"

Set this field's order.

--min_rows="0"

What is the minimum number of rows? Default: 0.

--max_rows="3"

What is the maximum number of rows?

Examples

Create a Grid field in field group 1

$ eecli create:field:grid "Your Field Name" your_field_name 1

Create a Grid field with max and min rows

$ eecli create:field:grid --min_rows="1" --max_rows="3" "Name" name 1
Clone this wiki locally