medienreaktor/bootstrap

Last activity 05 Dec 2018 2 40
composer require medienreaktor/bootstrap

1.0.2

Version
1.0.2
Type
neos-package
Release Date
Dec 05, 2018 10:43
Source
git
Distribution
zip
53712ef7ead7e9aeaf242265f43e166e0497d7c9

Medienreaktor.Bootstrap

Bootstrap Components for Neos CMS (Fusion Components and AFX) – based on Bootstrap 4.1 (https://getbootstrap.com/)

How to use

Map your content NodeTypes to the presentational components like this:

prototype(Medienreaktor.Site:Content.Button) < prototype(Neos.Neos:ContentComponent) {
    renderer = Medienreaktor.Bootstrap:Component.Button {
        content = Neos.Neos:Editable {
            property = 'text'
            block = false
        }
        href = ${q(node).property('link')}
        href.@process.convertUris = Neos.Neos:ConvertUris {
            forceConversion = true
        }
        theme = ${q(node).property('theme')}
    }
}

The resulting HTML is a Bootstrap button component:

<a href="http://" class="btn btn-primary">Your Button Text</a>

See the component fusion files for the complete API of all properties. In case of the button component, there are e.g. outline and size properties you can set either using NodeType properties or in your ContentComponent definition.

Included components

Layout

  • Container
  • Grid (rows and cols)
  • Media

Content

  • Blockquote
  • Code
  • Figure
  • Heading
  • Image
  • Lead
  • List
  • Picture

Component

  • Alert
  • Badge
  • Breadcrumb
  • Button
  • Button group
  • Card
  • List group
  • Nav
  • Navbar
  • Pagination

Utilities

  • Close icon
  • Embed responsive

Work in progress

This is work-in-progress. More components will be added from time to time.

The content of the readme is provided by Github
The same vendor provides 3 package(s).