An OctoberCMS plugin to override default behavior and provide custom functionality for a better user experience.
To install, clone this repository or create a Git submodule at /plugins/aspendigital/lookfeel/
This plugin adds the following functionality to the Pages plugin, generally by setting configuration variables on theme layouts.
When changing the URL of a parent page, its existing children will pick up the URL change (if using that URL as a prefix).
In a layout file's configuration section, set
hidden = true
This plugin adds a permission for viewing hidden elements. Hidden layouts are visible to super users and those granted this permission. Also, if an existing page uses an otherwise-hidden layout, the layout will not be hidden in the dropdown list.
The trigger API can take action based on the status of a single form field, but occasionally it's necessary to alter the form based on multiple fields. This widget acts a go-between for the trigger API, creating a hidden checkbox form field that can be used as the source for other fields using triggers normally.
The syntax for specifying conditions is the same as for triggers: 'checked', 'unchecked', or 'value[value1,value2,value3]'
fields:
name:
type: text
checkbox:
type: checkbox
_conditional:
type: multiconditional
match: any # Could also be 'all'
sources:
- field: name
condition: value[Test]
- field: checkbox
condition: checked
# This field will display if either the name field has a value of 'Test' or the checkbox is checked
other:
type: text
trigger:
action: show
field: _conditional
condition: checked