mrtool/contao-hierarchical-body-class

此软件包已被废弃,不再维护。未建议替代软件包。

这是一个 contao 扩展,提供了一个标签,可以根据网站父级网站的 CSS 类添加。

安装: 54

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 2

分支: 1

类型:contao-module

0.0.2 2015-01-27 10:14 UTC

This package is not auto-updated.

Last update: 2021-12-11 01:49:49 UTC


README

Version License Downloads

这是一个 contao 扩展,提供了一个标签,可以根据网站父级网站的 CSS 类添加。

如何使用

您可以直接在后台页面 CSS 字段或模板中使用以下标签。


{{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

也可以直接在 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)

附加说明

本模块提供“原样”,不提供任何形式的保证。如果您发现任何问题,请使用 GitHub 问题跟踪器。