Options values can be managed for:
- Pages. This can be done in page properties modal window. Page options are inherited from a template, which is assigned to page.
- Page contents, when server control or HTML widget is added as page content. This could be done by pressing configure button. Page content options are inherited from widget.
Options values edit form looks like that:
Each option contains fields:
Use default value,
Available option value types are these:
JS Include URL,
CSS Include URL,
Images Folder. Depending on type, different controls are shown, and different validations are executed.
JS Include URL and
To enter edit mode, click edit icon (2). After modifications, when saving, or canceling changes, click on OK / Cancel button (3).
When option is inherited from parent object (template or widget), it cannot be deleted (7). If flag
Use default is checked, value is not stored in the database, and parent option's default value is used (8). When flag
Use default is set to false, a value can be edited and record is saved to database (9). Value can be changed in the value control, which depends on option
Type (4). In such case, even value is empty, it will override parent option's value. When
Use default is set to false, changing parent option's value will not affect option value.
Also, there is an ability to add custom value, by clicking on 'Add New' button (1). In such a case
Option name field is required.
Default value and
Use default are disabled for editing (5). Custom values can be deleted by clicking delete icon(6). Also, if parent option is deleted from parent object, option value is identified as custom and can be deleted.