Giter Site home page Giter Site logo

owlash / johannessteu.bootstrap.gridsystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johannessteu/johannessteu.bootstrap.gridsystem

0.0 2.0 0.0 23 KB

This packages provides some new Bootstrap based Grid-NodeTypes for TYPO3.NEOS

PHP 63.01% HTML 36.99%

johannessteu.bootstrap.gridsystem's Introduction

JohannesSteu.Bootstrap.GridSystem

This packages provides some new NodeTypes to add bootstraps gridsystem (http://getbootstrap.com/css/#grid) to TYPO3.Neos:

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)

Those NodeTypes will provide a basic gridsystem based on Bootstrap (http://getbootstrap.com). Each grid has several layout-options.

Some more types to create custom grids:

  • Container (fixed or fluid width)
  • Row
  • Grid

Installation

Install it via composer. There are currently 2 versions available: 1.0 and 1.2.x
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

composer require johannessteu/bootstrap-gridsystem

or just copy this package in YOUR_ROOT/Plugins/JohannesSteu.Bootstrap.GridSystem

Afterwards the GridSystem.ts2 will be auto-inlcuded in your main TypoScript. Otherwise use

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

in your Root.ts2. Inside your Template you need to load the bootstrap css. You can do so with

<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 you got the TYPO3.Twitter.Bootstrap package installed.

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 you will notice a new tab with some options as well.

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

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

JohannesSteu:
  Bootstrap:
    GridSystem:
      Layouts:
        '50-50':
          'col-1': 'col-xs-6'
          'col-2': 'col-xs-6'

Custom Grids

To create custom grids first you add a new "Custom row". In this row you can add multiple nodes of type "Custom gridcolumn". For each Column you can set:

  • size sm-lg
  • visiblity
  • hidden
  • offset sm-lg
  • ordering pull sm-lg
  • ordering push sm-lg

Planned Features

  • nothing right now

johannessteu.bootstrap.gridsystem's People

Contributors

johannessteu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.