Commit 3380b22d authored by Andy Hausmann's avatar Andy Hausmann

Extended TCA by logic to transform subtitle field to RTE if corresponding box...

Extended TCA by logic to transform subtitle field to RTE if corresponding box in EM Config is checked.
parent 3b9fb972
......@@ -3,6 +3,9 @@ if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
// Extension manager configuration
$configuration = Tx_Flexslider_Utility_EmConfiguration::getConfiguration('flexslider');
$pathLL = 'LLL:EXT:flexslider/Resources/Private/Language/locallang_db.xml:';
$TCA['tx_flexslider_domain_model_flexslider'] = array(
......@@ -157,4 +160,25 @@ $TCA['tx_flexslider_domain_model_flexslider'] = array(
),
);
/**
* Conditional configuration
*/
// Extend the subtitle field, if the corresponding value in EM Config is set.
if ($configuration['extendSubtitleByRTE']) {
$TCA['tx_flexslider_domain_model_flexslider']['columns']['subtitle']['config']['wizards'] = array(
'RTE' => array(
'icon' => 'wizard_rte2.gif',
'notNewRecords'=> 1,
'RTEonly' => 1,
'script' => 'wizard_rte.php',
'title' => 'LLL:EXT:cms/locallang_ttc.xml:bodytext.W.RTE',
'type' => 'script'
),
);
$TCA['tx_flexslider_domain_model_flexslider']['columns']['subtitle']['defaultExtras'] = 'richtext[]';
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment