heimrichhannot / contao-be_explanation
1.0.7
2017-08-16 12:16 UTC
Requires
- php: ~5.4 || ~7.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-haste_plus: ~1.0
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'
)
);