2017 © Pedro Peláez
 

contao-module contao-mergecssclasses

Small extension for Contao to automatically merge CSS classes in included elements

image

fritzmg/contao-mergecssclasses

Small extension for Contao to automatically merge CSS classes in included elements

  • Monday, November 6, 2017
  • by fritzmg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

, (*1)

Contao Merge CSS Classes

Small extension for Contao to automatically merge CSS classes in included elements., (*2)

By default, Contao ignores the CSS ID and class values defined in an element, when it is included via an include Content Element. So if you defined a CSS class in a module for example and then integrated this module via a Content Element on your page, its CSS class will not be used. Instead you have to define a CSS class in the Content Element itself., (*3)

You can change that behavior with this extension. The CSS classes will be merged together. For example, if you have a Module with a CSS class elemA and you include it in a Content Element with a CSS class elemB, the included element will have both CSS classes: elemA elemB. This behavior will also be used in Contao 4., (*4)

This extension also includes the CSS ID of the included element if present. So if the Module or Content Element to be included has a CSS ID defined, it will also be used in the include element. However, the include element's own CSS ID will be prioritized, if defined. This behavior will not be used in Contao 4, as far as I know., (*5)

Note: in Contao 3.4.0 onwards you can already access the original CSS ID and class and the original margin values via the template variables origCssID and origSpace., (*6)

The Versions

06/11 2017

dev-master

9999999-dev http://www.inspiredminds.at

Small extension for Contao to automatically merge CSS classes in included elements

  Sources   Download

GPL-2.0

The Requires

 

merge css classes include contao

26/06 2015

1.0.0

1.0.0.0 http://www.inspiredminds.at

Small extension for Contao to automatically merge CSS classes in included elements

  Sources   Download

GPL-2.0

The Requires

 

merge css classes include contao