2017 © Pedro Peláez
 

contao-module contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

image

heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  • Tuesday, March 27, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 5 Watchers
  • 1 Stars
  • 5,719 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 29 % Grown

The README.md

Components

Components is a contao extension that gives better control over javascript and css invocation within page layouts. If you register your javascript and css files as component, it is possible to disable the component for each layout., (*1)

Technical instruction

To disable custom js/css components, register them within '$GLOBALS['TL_COMPONENTS']'., (*2)

The following example is taken from heimrichhannot/contao-bootstrapper., (*3)

$GLOBALS['TL_COMPONENTS'] = array
(
        'bs.inputSlider' => array
        (
            'js'  => array
            (
                'files' => array
                (
                    'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/bootstrap-slider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
                    BOOTSTRAPPER_JS_COMPONENT_DIR . '/input-slider/bs.inputSlider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
                ),
            ),
            'css' => array
            (
                'files' => array
                (
                    'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css|screen|static',
                )
            ),
        ),
        'bs.tooltip' => array
        (
            'js'  => array
            (
                'files' => array
                (
                    BOOTSTRAPPER_JS_COMPONENT_DIR . '/tooltip/bs.tooltip' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
                ),
            )
        ),
        'modernizr'         => array
        (
            'js' => array
            (
                'files' => array
                (
                    'system/modules/bootstrapper/assets/vendor/modernizr.min.js|static',
                ),
                'before'  => 0, // invoke always before jquery of the given key
                //'after'  => 'bs.core', // invoke always after bs.core
            ),
        ),
);

The Versions

27/03 2018

dev-master

9999999-dev https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

27/03 2018

2.0.2

2.0.2.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

27/03 2018

2.0.1

2.0.1.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

06/11 2017

2.0.0

2.0.0.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

12/09 2017

1.1.0

1.1.0.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

15/08 2017

1.0.4

1.0.4.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

12/06 2017

1.0.3

1.0.3.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

12/04 2017

1.0.2

1.0.2.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

05/04 2017

1.0.1

1.0.1.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout

21/03 2017

1.0.0

1.0.0.0 https://github.com/heimrichhannot/contao-components

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

  Sources   Download

LGPL-3.0+

The Requires

 

css frontend javascript contao layout