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
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
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2015-01-14