定制 fritzmg/contao-mergecssclasses 二次开发

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

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

fritzmg/contao-mergecssclasses

最新稳定版本:1.0.0

Composer 安装命令:

composer require fritzmg/contao-mergecssclasses

包简介

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

README 文档

README

Contao Merge CSS Classes

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

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.

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.

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.

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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-06-26