定制 netzmacht/contao-dom-manipulator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netzmacht/contao-dom-manipulator

最新稳定版本:1.0.0

Composer 安装命令:

composer require netzmacht/contao-dom-manipulator

包简介

This extension integrates the PHP dom manipulator into Contao.

README 文档

README

No Maintenance Intended Build Status Version License Downloads Contao Community Alliance coding standard

This extension integrates the PHP dom document manipulator into Contao.

Install

This library can be installed using composer

$ 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:

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

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

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

  • 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.

To get more details how to create rules have a look at netzmacht/php-dom-manipulator.

Credits

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

统计信息

  • 总下载量: 41
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2014-12-11