2017 © Pedro Peláez
 

silverstripe-module silverstripe-content-blocks

Split your page content into manageable blocks/sections of content, each with their own template

image

nobrainerweb/silverstripe-content-blocks

Split your page content into manageable blocks/sections of content, each with their own template

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 11 Open issues
  • 31 Versions
  • 0 % Grown

The README.md

Silverstripe-Content-Blocks (previous: Silverstripe-Section-Module)

Split your page content into manageable sections/blocks of content, each with their own template., (*1)

Create compelling and unique pages

This module gives you the option to create your content, in little blocks, instead of just one big content area., (*2)

When the module is installed, a "Blocks" tab will be added to all pages. The blocks tab holds a GridField, that allows you to create as many blocks of content as you would like. Each block of content can have it's own template assigned. The module commes with a set of standard templates., (*3)

You can easily create your own block templates and even your own block DataObjects with unique fields. This makes it very easy for content editors to create pages with lots of variation, without having to know HTML, fiddle around with tables and so on. Create your own block templates and/or extend the Block DataObject to create: - Image lists (simple gallery) - Employee listings - Product listings - and much more, (*4)

Version compatibility

Tested on Silverstripe 3.1.2, (*5)

Installation instructions

  • Put this module under the root folder of site, named content-blocks.
  • Add the following code to your themes/your_design/templates/Layout/Page.ss where you want the content blocks to be rendered:
<div class="blocks"><% loop ActiveBlocks %>$Me<% end_loop %></div>

Or you can ask for a single Block to render via it's ID (replace 5 with your ID):, (*6)

$OneBlock(5)
  • install the following dependent module(s), (*7)

    • GridField Extensions https://github.com/ajshort/silverstripe-gridfieldextensions/, (*8)

    • Better buttons for GridField by unclecheese https://github.com/unclecheese/silverstripe-gridfield-betterbuttons, (*9)

Or use Composer:, (*10)

"nobrainerweb/silverstripe-content-blocks": "dev-master"
  • run sitename.com/dev/build?flush=all, (*11)

  • The module will copy content-blocks/templates/BlockTemplates to themes/your_design/templates/BlockTemplates, should this fail, please copy the files manually., (*12)

  • The module will copy content-blocks/css/sections.css to themes/your_design/block.css, should this fail, please copy the file manually.

Usage and customization:

  • add your own templates to themes/your_design/templates/BLcokTemplates, they need to have the extension .ss and delete any unwanted templates (there is full example set of fixed width and fluid width templates included in the module)
  • allways run dev/build?flush=1 after adding templates
  • remember to ?flush=1 after modification of templates

Screenshots

Overview Overview in page editing, (*13)

modeladmin View all blocks across pages in a ModelAdmin, (*14)

Detail views, (*15)

TODO:

  • Option to add more content placeholders without coding - site config?
  • Handle search
  • Versioning

IDEAS

  • Save available templates in database (enum field) - create on dev/build or use template manifest
  • Build in template generator
  • Form blocks
  • Better previews (C/P from design)
  • Perhaps add foundation templates as a suggested composer requirement (and other CSS frameworks)

The Versions

09/10 2017

dev-master

9999999-dev https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

09/10 2017

2.3

2.3.0.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

27/02 2017

2.2.35

2.2.35.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

24/02 2017

2.2.34

2.2.34.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

20/01 2017

2.2.33

2.2.33.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

17/01 2017

2.2.32

2.2.32.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

19/12 2016

2.2.31

2.2.31.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

19/12 2016

dev-fix-template-thumbnail-html-broken

dev-fix-template-thumbnail-html-broken https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

16/12 2016

dev-block-selection

dev-block-selection https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

18/11 2016

2.2.3

2.2.3.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

01/11 2016

2.2.2

2.2.2.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

07/10 2016

2.2.1

2.2.1.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

03/10 2016

2.2.0

2.2.0.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

03/10 2016

dev-internalexternallink

dev-internalexternallink https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

29/09 2016

v2.1.0

2.1.0.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

13/09 2016

2.0.3

2.0.3.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

09/09 2016

2.0.2

2.0.2.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

09/09 2016

2.0.1

2.0.1.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

09/09 2016

2.0.0

2.0.0.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

21/06 2016

1.0.11

1.0.11.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

03/06 2016

1.0.10

1.0.10.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

19/01 2016

1.0.9

1.0.9.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

21/09 2015

1.0.8

1.0.8.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

22/01 2015

1.0.7

1.0.7.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

22/01 2015

1.0.6

1.0.6.0 https://github.com/NobrainerWeb/Silverstripe-Content-Blocks

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

content silverstripe blocks sections section

16/01 2015
16/01 2015
16/01 2015
10/01 2014

dev-has_many-(v1)

dev-has_many-(v1) https://github.com/NobrainerWeb/Silverstripe-Section-Module

Split your page content into manageable blocks/sections of content, each with their own template

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe blocks sections section