2017 © Pedro Peláez
 

contao-module contao-dom-manipulator

This extension integrates the PHP dom manipulator into Contao.

image

netzmacht/contao-dom-manipulator

This extension integrates the PHP dom manipulator into Contao.

  • Wednesday, June 20, 2018
  • by netzmacht
  • Repository
  • 2 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Contao dom document manipulator

No Maintenance Intended Build Status Version License Downloads Contao Community Alliance coding standard, (*1)

This extension integrates the PHP dom document manipulator into Contao., (*2)

Install

This library can be installed using composer, (*3)

$ php composer.phar require netzmacht/contao-dom-manipulator:~1.0
$ php composer.phar updatet 

Usage

This extension hooks into the parseFrontendTemplate and parseBackendTemplate hook. It provides 4 events:, (*4)

  • Netzmacht\Contao\DomManipulator\Events::CREATE_MANIPULATOR It's the event which collects the rules and creates the manipulator., (*5)

  • Netzmacht\Contao\DomManipulator\Events::START_MANIPULATE It's just a state notification event. It's called before the manipulation starts., (*6)

  • Netzmacht\Contao\DomManipulator\Events::STOP_MANIPULATE It's just a state notification event. It's called before the manipulation stops., (*7)

  • Netzmacht\Contao\DomManipulator\Events::LOAD_HTML It's called right before the html is load into the manipulator. Use it to fix hml if something is going wrong when loading html into the dom., (*8)

To get more details how to create rules have a look at netzmacht/php-dom-manipulator., (*9)

Credits

This extension initially was extracted from the toflar/contao-css-class-replacer which is maintained by Yanick Witschi alias @Toflar., (*10)

The Versions