#175

Product support

Get help in the plugin support forum.

Categories

  • Developer Tools
  • Utility

This OctoberCMS plugin add the possibility to create buttons in backend lists that toggle a model property. That allow you to create a publish / unpublish button on the lists backend (see bellow for demo).

Demo

Default behaviour
switch-icon

Behaviour with icon: false
switch-text

With custom titles
switch-icon-custom-titles

Usage

For add this feature to a list you just need to set the type inetis-list-switch in the columns.yaml field of your model.

Example of advanced configuration :

your_field:
    label: 'Your Label'
    type: inetis-list-switch # define the type inetis-list-switch for create a button

    icon: true # If true replace Yes/No text by ✓/✗ icons (default: true)

    # With the two following params, you can override 
    # the default title displayed on the button hover 
    # You can use translation strings
    titleTrue: 'Unpublish item' # by default : Click to switch to No
    titleFalse: 'Publish item' # by default : Click to switch to Yes

    # For override the text of the button
    # the default title displayed on the button hover
    # You can use translation strings
    textTrue: 'Published' # by default : Yes
    textFalse: 'Unpublished' # by default : No
1.0.2

Display correctly the column label

Jun 19, 2017

1.0.1

First version of listSwitch

Jun 15, 2017