August 17th, 2006
CType.removeItems funktioniert nicht mit TemplaVoila
Nach eingem Grübeln, warum mein TSConfig
TCEFORM.tt_content.CType.removeItems = search,sitemap,login,html
nicht funktioniert und trotzdem alle Content Elemente im Content Element Wizard angezeigt werden, bin ich auf folgenden Eintrag im typo3 Bugtracker gestoßen:
The Content Element Wizard of TemplaVoilà (v1.0.1; could’nt choose that version in bugtracker) ignores TCEFORM.tt_content.CType.removeItems. That means, that all CEs are shown, but in the following dialog the forbidden elements are marked as “INVALID VALUE” (see attached image).
Additional Information To fix this the function removeInvalidElements in templavoila/mod1/db_new_content_el.php has to be changed. I just copied some lines from typo3/sysext/cms/layout/db_new_content_el.php (see attached diff-file).
Hm, also wieder patchen…
Hier ist der Diff-Code für die Datei templavoila/mod1/db_new_content_el.php:
452a453,457
> // Get TCEFORM from TSconfig of current page
> $row = array('pid'=>$this->id);
> $TCEFORM_TSconfig = t3lib_BEfunc::getTCEFORM_TSconfig(
'tt_content',$row);
> $removeItems = t3lib_div::trimExplode(
',',$TCEFORM_TSconfig['CType']['removeItems'],1);
>
479c484
< if ($authModeDeny) {
—
> if ($authModeDeny || in_array($fV,$removeItems)) {


No Responses to “CType.removeItems funktioniert nicht mit TemplaVoila”
No comments yet
Leave a Reply