定制 mrtool/contao-hierarchical-body-class 二次开发

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

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

mrtool/contao-hierarchical-body-class

最新稳定版本:0.0.2

Composer 安装命令:

composer require mrtool/contao-hierarchical-body-class

包简介

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

README 文档

README

Version License Downloads

An contao extension which provides an inserttag to add an css-class based on the sites parent sites

How to use:

You can use following inserttags directly in the backend page css field or in the template


{{hbc::default}}
Iterates back to the root page and returns every found valid css class string


{{hbc::first}}
Iterates back to the root page and returns the first occurrence of an valid css class string


{{hbc::12}}
Returns the css class string from the page with id 12

It is also possible to use the extension directly in php

// Default - like {{hbc::default}}
$classes = MrTool\HierarchicalBodyClass\Provider\HierarchicalBodyClass::getAll($pageId)

// First - like {{hbc::first}}
$classes = MrTool\HierarchicalBodyClass\Provider\HierarchicalBodyClass::getFirst($pageId)

// From - like {{hbc::12}}
$classes = MrTool\HierarchicalBodyClass\Provider\HierarchicalBodyClass::getFrom($pageId)

Additional note

This module is provided "as is", without warranty of any kind. It is still under development if you find any issues please use the github issue tracker.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-01-14