liip/oc-blocks-theme

Name: oc-blocks-theme

Owner: Liip

Description: OctoberCMS theme that demonstrates the use of repeater groups to assemble static pages with customizable building blocks.

Created: 2017-11-02 19:29:53.0

Updated: 2017-11-23 11:07:53.0

Pushed: 2017-11-02 19:44:14.0

Homepage: null

Size: 23

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Blocks Theme

clone this repo into your octobercms themes folder.

(assume your in the root of your octobercms installation)

NOTE: the name blocks is important, if you change the themes name you have to alter the groups attribute in the layouts/default.htm repeater to match the path.

hemes
clone https://github.com/liip/oc-blocks-theme.git blocks

in your backend, check the static pages plugin. You now have a blocks tab where you can add different blocks, enter data and even rearrange their order.

static pages example

To add more block types, edit the meta/groups.yaml file. Important: each group definition has a corresponding partial file in partials/blocks/{group_name}. The form data is passed as 'data'.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.