Extending functionality¶
Add a new field in the TCA with renderType 'readabilityChecker'
Example:
$tempColumn = [
'tx_ediareadability_checker' => [
'exclude' => 0,
'label' => 'LLL:EXT:edia_readability/Resources/Private/Language/locallang_db.xlf:tx_ediareadability_checker',
'config' => [
'type' => 'user',
'renderType' => 'readabilityChecker',
'field' => 'bodytext'
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumn);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tt_content',
'tx_ediareadability_checker',
'text,textpic,textmedia',
'after:bodytext'
);
unset($tempColumn);
Add configuration to ext_tables.php to allow indexing the elements
$GLOBALS['TYPO3_CONF_VARS']['EXT']['edia_readability']['tables']['tx_news_domain_model_news'][] = 'bodytext';