2017 © Pedro Peláez
 

silverstripe-module silverstripe-pageslices

Page slice implementation for Silverstripe

image

bramdeleeuw/silverstripe-pageslices

Page slice implementation for Silverstripe

  • Thursday, June 21, 2018
  • by TheBnl
  • Repository
  • 1 Watchers
  • 3 Stars
  • 349 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 29 Versions
  • 10 % Grown

The README.md

Page slice module for Silverstripe

This module provides a base PageSlice class on which new slices can be extended. A PageContentSlice is included by default, this slice holds the parent's content., (*1)

Installation

To add page slices to your page simply include the PageSlicesExtension to your page., (*2)

Setting up default slices

Default slices are slices set up by the developer in the config that are installed on createion of a page or object after write. This module comes with some config setting by which default slices can be set up. For example:, (*3)

Page:
  extensions:
    - Broarm\Silverstripe\PageSlices\PageSlicesExtension
  default_slices:
    - PageContentSlice
Broarm\Silverstripe\PageSlices\PageSlice:
  default_slices_exceptions:
    - Blog

With the above config all pages would get the PageContentSlice by default except for Blog pages., (*4)

The config stacks, so if you would like to add a banner slice to blog posts by default you could add the following to the config:, (*5)

BlogPost:
  default_slices:
    - BannerSlice
    # By adding the content slice you can control the sort order
    # Otherwise stacked slices will be appended to the list
    - PageContentSlice

PageContentSlice template hierarchy

The Page content slices looks for it's template in a similar manner as the Page class. For example, a PageContentSlice added to a BlogPost would prefer the BlogPostContentSlice.ss template above the PageContentSlice.ss. It iterates trough the class hierarchy until it stumbles upon a usable template., (*6)

Note

The module is namespaced except for the PageContentSlice, this is because the GridFieldAddNewMultiClass does not support namespaced classes yet. For your own PageSlices take care to not namespace them (yet!)., (*7)

Maintainers

Bram de Leeuw, (*8)

The Versions

21/06 2018
21/06 2018
09/03 2018
09/03 2018

2.0.10

2.0.10.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

18/01 2018

dev-master

9999999-dev

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

15/01 2018

2.0.8

2.0.8.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

15/01 2018

2.0.9

2.0.9.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

15/01 2018

2.0.7

2.0.7.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

11/01 2018

2.0.6

2.0.6.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

11/01 2018

2.0.5

2.0.5.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

11/01 2018

2.0.4

2.0.4.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

10/01 2018

2.0.3

2.0.3.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

23/11 2017

2.0.2

2.0.2.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

23/11 2017

2.0.1

2.0.1.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

22/11 2017

2.0.0

2.0.0.0

Page slice implementation for Silverstripe

  Sources   Download

BSD-3-Clause

The Requires

 

page silverstripe layout slice

05/10 2017
05/10 2017
11/07 2017
22/03 2017
22/03 2017
02/03 2017
02/03 2017
01/03 2017
28/02 2017
13/02 2017
08/02 2017
01/02 2017
01/02 2017
10/01 2017