Der Code für ein RTE-Feld in einer eigenen Extension hat sich mit der Version 7.6 geändert. Die Syntax von TCA wizards hat sich geändert, das betrifft vor allem RTE und Typolinks.
Fehlermeldung:
The way registering a wizard in TCA has changed in 6.2 and was removed in CMS 7. Please set module[name]=module_name instead of using script=path/to/script.php in your TCA.
Alter Code für RTE (bis 6.2):
'wizards' => array(
'RTE' => array(
'icon' => 'wizard_rte2.gif',
'notNewRecords'=> 1,
'RTEonly' => 1,
'script' => 'wizard_rte.php',
'title' => 'LLL:EXT:cms/locallang_ttc.xlf:bodytext.W.RTE',
'type' => 'script'
)
)
Neuer Code für RTE wizard:
'wizards' => array(
'_PADDING' => 2,
'RTE' => array(
'notNewRecords' => 1,
'RTEonly' => 1,
'type' => 'script',
'title' => 'Full screen Rich Text Editing',
'icon' => 'wizard_rte2.gif',
'module' => array(
'name' => 'wizard_rte',
),
),
),
Alter Code für Links (bis 6.2):
"wizards" => array(
"_PADDING" => 2,
"link" => array(
"type" => "popup",
"title" => "Link",
"icon" => "link_popup.gif",
"script" => "browse_links.php?mode=wizard",
"JSopenParams" => "height=300,width=500,status=0,menubar=0,scrollbars=1"
)
),
Neuer Code für Link wizard:
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel',
'icon' => 'actions-wizard-link',
'module' => array(
'name' => 'wizard_link',
),
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
),
),
'softref' => 'typolink'