2017 © Pedro Peláez
 

neos-package bootstrap-gridsystem

Neos CMS package to wrap bootstraps grid system

image

johannessteu/bootstrap-gridsystem

Neos CMS package to wrap bootstraps grid system

  • Wednesday, December 21, 2016
  • by johannessteu
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,419 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 2 Forks
  • 0 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

JohannesSteu.Bootstrap.GridSystem

This packages provides some new NodeTypes to add versatile grid system. All default class names are made for usage with bootstrap (http://getbootstrap.com/css/#grid). This package does not provide any CSS. You can you use your custom stylesheets or include the bootstrap CSS within your site package. It's also possible to configure all class names to you needs., (*1)

With this package you will get this NodeTypes, (*2)

Predefined grids (with layout options): * 2 Columns (50/50; 25/75; 75/25; 33/66; 66/33; 20/80; 80/20) * 3 Columns (33/33/33; 25/50/25) * 4 Columns (25/25/25/25), (*3)

Those NodeTypes will provide a basic grid system. Each grid has several layout-options., (*4)

Some more NodeTypes to create custom grids: * Container (fixed or fluid width) * Row * Grid, (*5)

Installation

Install it via composer. There are currently older versions available. For the latest version use >3.0.0 br/ The 1.2 branch is made for Neos 1.2 and includes the custom grid functionality. Version 1.0 is made vor Neos >= 1.1 3.0 is tested with Neos >= 2.1, (*6)

composer require johannessteu/bootstrap-gridsystem

or just copy this package in YOUR_ROOT/Plugins/JohannesSteu.Bootstrap.GridSystem, (*7)

Afterwards the Root.ts2 will be auto-included in your main TypoScript. Otherwise use, (*8)

include: resource://JohannesSteu.Bootstrap.GridSystem/Private/TypoScript/Root.ts2

in your Root.ts2., (*9)

Inside your Template you need to load some stylesheets. If you go for bootstrap this you can do so with, (*10)

<link rel="stylesheet" type="text/css" href="{f:uri.resource(package: 'TYPO3.Twitter.Bootstrap', path: '3.1/css/bootstrap.css')}" media="all">

inside your head-Section if there is the TYPO3.Twitter.Bootstrap package installed., (*11)

Usage

To use this plugin just create a new ContentElement inside your page and choose one of the new types. The Inspector-Pane will give you access to all different layouts and settings. In Neos 1.2 and higher you will notice a new tab with some options as well., (*12)

Breakpoints

You can configure all breakpoints for all predefined columns. If you are not familiar which classes are used to configure the breakpoints check this out: http://getbootstrap.com/css/#grid . To Override the default breakpoints you just have to override the settings in your Site's Settings.yaml. Make sure that this package is not required after your Sites package. Best practice would be to require this plugin inside your Sites composer.json, (*13)

If you e.g. would like to break the 50-50 layout also at size xs in a 50-50 layout you have to add this in Packages/Sites/YourVendor.SiteKey/Configuration/Settings.yaml, (*14)

JohannesSteu:
  Bootstrap:
    GridSystem:
      Layouts:
        '50-50':
          'col-1': 'col-xs-6'
          'col-2': 'col-xs-6'
        '25-50-25':
          'col-1': 'col col-xs-12 col-sm-3'
          'col-2': 'col col-xs-12 col-sm-6'
          'col-3': 'col col-xs-12 col-sm-3'
        '25-25-25-25':
          'col-1': 'col col-xs-12 col-sm-3'
          'col-2': 'col col-xs-12 col-sm-3'
          'col-3': 'col col-xs-12 col-sm-3'
          'col-4': 'col col-xs-12 col-sm-3'

Custom Grids

To create custom grids first you add a new "Custom row". In this row you can add multiple nodes of type Column. For each Column you can set: * size XS to LG * visiblity * hidden * offset sm-lg * ordering pull sm-lg * ordering push sm-lg, (*15)

The Versions

21/12 2016

dev-master

9999999-dev

Neos CMS package to wrap bootstraps grid system

  Sources   Download

GPL-3.0+

The Requires

 

11/05 2016

3.0.0

3.0.0.0

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

GPL-3.0+

The Requires

 

14/03 2016

2.1.x-dev

2.1.9999999.9999999-dev

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

25/01 2016

2.0.x-dev

2.0.9999999.9999999-dev

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

25/01 2016

2.0.0

2.0.0.0

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

20/04 2015

1.2.5

1.2.5.0

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

20/03 2015

1.2.1

1.2.1.0

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

28/12 2014

1.2.0

1.2.0.0

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

18/11 2014

1.0.x-dev

1.0.9999999.9999999-dev

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires

 

18/11 2014

1.0.0

1.0.0.0

Plugin for TYPO3.Neos to wrap bootstraps gridsystem

  Sources   Download

MIT

The Requires