Download the PHP package flxlabs/silverstripe-pagesections without Composer
On this page you can find all versions of the php package flxlabs/silverstripe-pagesections. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flxlabs/silverstripe-pagesections
More information about flxlabs/silverstripe-pagesections
Files in flxlabs/silverstripe-pagesections
Package silverstripe-pagesections
Short Description Adds configurable page sections and elements to your SilverStripe project.
License MIT
Homepage http://github.com/flxlabs/silverstripe-pagesections
Informations about the package silverstripe-pagesections
Silverstripe Pagesections
Elemental alternative for configurable page sections and elements.
Introduction
This module provides page sections for SilverStripe 4.x projects. Page sections are areas on a page where CMS users can add their own content in a structured way. Pages can have none, one or more page sections attached to them. Each page section is made up of various page elements, which themselves can or cannot have other page elements as children.
Installation
Add the extension to the DataObject that should contain a PageSection:
By default the DataObject will have a PageSection called Main
. To add additional sections, or change the name of the default section, specify them in the page_sections
key.
Make sure to run dev/build
and flush.
Usage
Defining an element:
To render an element, create a Template. To render a page section use the RenderPageElements
method exposed by the PageSectionsExtension:
All versions of silverstripe-pagesections with dependencies
symbiote/silverstripe-gridfieldextensions Version ^4
silverstripe/vendor-plugin Version ^2.0
silverstripe/versioned Version ^2