2017 © Pedro Peláez
 

silverstripe-module silverstripe-advancedwidgeteditor

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

image

undefinedoffset/silverstripe-advancedwidgeteditor

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  • Thursday, August 17, 2017
  • by UndefinedOffset
  • Repository
  • 1 Watchers
  • 9 Stars
  • 538 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 16 Versions
  • 2 % Grown

The README.md

Advanced Widget Editor

CI, (*1)

Replaces the Widget Editor to enable support for advanced form fields such as SilverStripe\AssetAdmin\Forms\UploadField, (*2)

Requirements

Installation

composer require undefinedoffset/silverstripe-advancedwidgeteditor

Usage

To use advanced widget editor over the default SilverStripe widgets editor you need to change your extension from WidgetPageExtension to use AdvancedWidgetPageExtension instead., (*3)

Page:
  extensions:
    - 'UndefinedOffset\AdvancedWidgetEditor\Extensions\AdvancedWidgetPageExtension'

Controlling Available Widgets per-class

To control widgets on a per-class host class (class which the Advanced Widget Editor is controlling the widget area for), you can use the config property available_widgets for example:, (*4)

Page:
    available_widgets:
        - "RSSWidget"
        - "MyExampleWidget"

SilverStripe\Blog\Model\Blog:
    available_widgets:
        - 'SilverStripe\Blog\Widgets\BlogArchiveWidget'
        - 'SilverStripe\Blog\Widgets\BlogCategoriesWidget'
        - 'SilverStripe\Blog\Widgets\BlogTagsCloudWidget'
        - 'SilverStripe\Blog\Widgets\BlogRecentPostsWidget'

In the case of the above example the Page class and it's decedent classes will have the RSSWidget and MyExampleWidget available. Where the SilverStripe\Blog\Model\Blog class and it's decendent classes will also have ArchiveWidget, BlogManagementWidget, etc along side the RSSWidget and MyExampleWidget., (*5)

You can also restrict widgets from decedent classes using the example above say we want to restrict the SilverStripe\Blog\Model\Blog class to not have access to the RSSWidget but still have Page be allowed to use that widget, for example you can use the bellow:, (*6)

SilverStripe\Blog\Model\Blog:
    restricted_widgets:
        - "RSSWidget"

Reporting an issue

When you're reporting an issue please ensure you specify what version of SilverStripe you are using. Also be sure to include any JavaScript or PHP errors you receive, for PHP errors please ensure you include the full stack trace. Also please include how you produced the issue. You may also be asked to provide some of the classes to aid in re-producing the issue. Stick with the issue, remember that you seen the issue not the maintainer of the module so it may take allot of questions to arrive at a fix or answer., (*7)

The Versions

17/08 2017

dev-master

9999999-dev

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

17/08 2017

0.4.0

0.4.0.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

05/05 2017

0.3.4

0.3.4.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

08/03 2017

0.3.3

0.3.3.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

01/05 2015

0.3.2

0.3.2.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

19/10 2014

0.3.1

0.3.1.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

18/10 2014

0.3.0

0.3.0.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

02/10 2014

0.2.2

0.2.2.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

27/08 2014

0.2.1

0.2.1.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

02/08 2014

0.2.0

0.2.0.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

26/06 2014

0.1.5

0.1.5.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

24/06 2014

0.1.4

0.1.4.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

17/06 2014

0.1.3

0.1.3.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

13/05 2014

0.1.2

0.1.2.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

03/04 2014

0.1.1

0.1.1.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog

06/03 2014

0.1.0

0.1.0.0

Replaces the Widget Editor to enable support for advanced form fields such as UploadField

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe widgets blog