Allows adding a right-hand sidebar in the CMS to hold options/fields for the currently edited record
CSS Scheme PHP JavaScript Ruby
Latest commit d524650 Nov 29, 2016 @micschk committed on GitHub Merge pull request #5 from mooror/master
Fixed collapsing and small screen view
Permalink
Failed to load latest commit information.
.tx
code
css
images/screenshots
js Fixed collapsing and small screen view Nov 22, 2016
lang
scss
templates
.editorconfig
.gitattributes Added standard .gitattributes file Jan 16, 2016
.gitignore
.scrutinizer.yml Added standard Scrutinizer config Feb 16, 2016
.travis.yml
LICENSE Init adding files May 5, 2015
README.md Extend CompositeField instead of FieldGroup to allow easily adding fi… May 6, 2015
_config.php
composer.json Init May 5, 2015
config.rb Init adding files May 5, 2015

README.md

Silverstripe CMS Right Sidebar

Allows adding a right-hand sidebar in the CMS to hold options/fields for the currently edited record. Abstracted out from the Silverstripe Blog module for use on other pages as well (blog module by ao. Michael Strong/Silverstripe)

RightSidebar behaves like a tab (like tab it extends CompositeField). Usage (in getCMSfields):


    $fields->addFieldsToTab('Root.Main', RightSidebar::create('Options'));
    $fields->addFieldsToTab('Root.Main.Options', array(
        $publishDate = DatetimeField::create("PublishDate", "Publish Date"),
        TextField::create('Author')
    ));

    // Add to Main tab (fixed width) and render an outer template to deal with our custom layout
    $fields->addFieldsToTab('Root.Main', RightSidebar::create('Options'));
    $fields->fieldByName('Root')->setTemplate('RightSidebarInner');

    // OR: Add it full-screen (collapsible) and render an outer template to deal with our custom layout
    $fields->insertBefore(RightSidebar::create('Options'), 'Root');
    $fields->fieldByName('Root')->setTemplate('RightSidebar');

Screenshots

Inside a tab (fixed-width/non-collapsible)

Full screen (collapsible/expandable)