2017 © Pedro Peláez
 

contao-module contao-hierarchical-body-class

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

image

mrtool/contao-hierarchical-body-class

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

  • Tuesday, January 27, 2015
  • by MrTool
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Hierarchical Body Class

Version License Downloads, (*1)

An contao extension which provides an inserttag to add an css-class based on the sites parent sites, (*2)

How to use:

You can use following inserttags directly in the backend page css field or in the template, (*3)


{{hbc::default}} Iterates back to the root page and returns every found valid css class string {{hbc::first}} Iterates back to the root page and returns the first occurrence of an valid css class string {{hbc::12}} Returns the css class string from the page with id 12

It is also possible to use the extension directly in php, (*4)


// Default - like {{hbc::default}} $classes = MrTool\HierarchicalBodyClass\Provider\HierarchicalBodyClass::getAll($pageId) // First - like {{hbc::first}} $classes = MrTool\HierarchicalBodyClass\Provider\HierarchicalBodyClass::getFirst($pageId) // From - like {{hbc::12}} $classes = MrTool\HierarchicalBodyClass\Provider\HierarchicalBodyClass::getFrom($pageId)

Additional note

This module is provided "as is", without warranty of any kind. It is still under development if you find any issues please use the github issue tracker., (*5)

The Versions

27/01 2015

dev-master

9999999-dev http://www.r2pi.de

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

  Sources   Download

LGPL-3.0+

The Requires

 

class contao inserttag body

27/01 2015

0.0.2

0.0.2.0 http://www.r2pi.de

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

  Sources   Download

LGPL-3.0+

The Requires

 

class contao inserttag body

14/01 2015

dev-develop

dev-develop http://www.r2pi.de

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

  Sources   Download

LGPL-3.0+

The Requires

 

class contao inserttag body

14/01 2015

0.0.1

0.0.1.0 http://www.r2pi.de

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

  Sources   Download

LGPL-3.0+

The Requires

 

class contao inserttag body