Skip to content

Some OctoberCMS customizations to provide the user experience we want

Notifications You must be signed in to change notification settings

aspendigital/oc-lookfeel-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aspen Digital Look & Feel

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/

Pages Plugin

This plugin adds the following functionality to the Pages plugin, generally by setting configuration variables on theme layouts.

Sub-page URL inheritance

When changing the URL of a parent page, its existing children will pick up the URL change (if using that URL as a prefix).

Hide layout in dropdown list

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.

Widgets

Multi-conditional form widget

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

About

Some OctoberCMS customizations to provide the user experience we want

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •