heimrichhannot/contao-be_explanation

此包已被弃用,不再维护。作者建议使用 heimrichhannot/contao-be_explanation-bundle 包。

此模块提供了一个简单的后端解释表单字段(inputType)。

安装量: 4,488

依赖项: 4

建议者: 0

安全性: 0

星标: 0

关注者: 6

分支: 0

公开问题: 0

语言:CSS

类型:contao模块

1.0.7 2017-08-16 12:16 UTC

This package is auto-updated.

Last update: 2022-02-01 12:57:38 UTC


README

https://github.com/heimrichhannot/contao-be_explanation-bundle

后端解释

此模块提供了一个简单的后端解释表单字段(inputType)。

技术说明

只需将字段添加到您的数据容器数组中,如下所示

$GLOBALS['TL_DCA']['tl_*']['fields']['myExplanation'] = array
(
    'inputType' => 'explanation',
    'eval'      => array(
        'text'     => &$GLOBALS['TL_LANG']['tl_*']['myExplanation'], // this is a string, not an array
        'class'    => 'tl_info', // all contao message css classes are possible
        'tl_class' => 'long'
    )
);