heimrichhannot / contao-be_explanation
This module offers a simple backend explanation form field (inputType).
Installs: 4 509
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Language:CSS
Type:contao-module
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
Backend Explanation
This module offers a simple backend explanation form field (inputType).
Technical instructions
Just add the field to some of your data container arrays as follows:
$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'
)
);