Extend the data model
Extended fields extends the default data model by adding fields to page, article and media.
Extended fields needs to be activated to be used.
To activate the extended fields :
- Activate the use of extended fields in : Settings > Advanced Settings
- Reload Ionize : Extended fields are available in the menu Content > Extended fields
Create an extended field
| Setting | Description |
|---|---|
| Context | Kind of content the current created extended field is attached to. |
| Name | Name of the extended field. Used in the <ion:field /> tag to get the extended field value. |
| Name | Name of the extended field. |
| Label | Label displayed in Ionize for this extended field |
| Can be translated | When activated, this extended field can have a value for each installed language |
| Type | Kind of data. Input : A simple text input Textarea : A simple textarea Textarea + Editor : The textarea will be displayed through a Wysiwyg texteditor Checkbox, Radio, Select : List of values |
| Values | Need to be used when checkbox, radio or select type is chosen. |
| Default value | Used value when no value is set by the Editor. In case of checkbox, radio or select, the key must be used. |
| Description | Help displayed on the label. |
Set the extended field value
Once created, the extended field will appear in its context panel.
An article extended field will appear on the article edition panel.
Use an extended field in views
Extended fields are use in views through a dedicated tag : <ion:field />.
In case of radio, checkbox or select, the returned value will be the key.
<!-- In the above example, if "Medium" is selected by the Editor, the value “2” will be returned. --> <ion:field name="difficulty" from="article" />
See the field tag documentation for more details.