ich möchte endlich mal den tag erleben, an dem mal was auf anhieb klappt!!! rotz verdammter #evil#
ich habe in /typo3conf/ext_tables.php folgendes ergänzt:
if (!defined blablub);
t3lib_div::loadTCA(tt_blablub);
$TCA['tt_content']['types']['text'] = Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, subheader;;8, bodytext;;9;richtext[paste| bold| italic| underline| formatblock| class| left| center| right| orderedlist| unorderedlist| outdent| indent| link| image] : rte_transform[flag=rte_enabled|mode=ts]; 3-3-3, rte_enabled, text_properties');
$TCA['tt_content']['types']['textpic'] = Array('showitem' => 'CType;;4;button;1-1-1, header;;3;;2-2-2, subheader;;8, bodytext;;9;richtext[paste| bold| italic| underline| formatblock| class| left| center| right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[flag=rte_enabled|mode=ts];3-3-3, rte_enabled, text_properties, --div--, image;;;;4-4-4, imageorient;;2, imagewidth;;13, --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgLinks;7, --palette--;LLL:EXT:cms/locallang_ttc.php:ALT.imgOptions;11, imagecaption;;5');
die ext_tables.php in der localconf.php via
$typo_db_extTableDef_script = 'extTables.php';
inkludiert und in meinem Haupttemplate / bzw. ab v4.5.0 introduction package unter /Typoscript Templates/systemConfiguration/tt_content templates folgendes TS im setup bereich hinzugefügt:
tt_content{
text.15 = TEXT
text.15 {
field = subheader
required = 1
dataWrap = <p class="csc-subheader csc-subheader-{field:layout}">|</p>
htmlSpecialChars = 1
editIcons = tt_content:subheader,layout
editIcons.beforeLastTag = 1
editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.subheader
prefixComment = 2 | Subheader:
}
textpic.20.text.10.15 < .text.15
textpic.20.text.10.15.dataWrap = <p class="csc-textpicsubheader csc-textpicsubheader-{field:layout}">|</p>
textpic.10.15 < .text.15
textpic.10.15.dataWrap = <p class="csc-textpicsubheader csc-textpicsubheader-{field:layout}">|</p>
}
Ole ole, der Subheader wird mir im BE und auch im FE angezeigt - jubel trubel - allerdings sind alle weiteren Reiter (Erscheinungsbild, Zugriff etc.) wech, bzw. bild noch da aber ohne titel. Somit völlig unbrauchbar.
Das gleiche übrigens auch mit Benutzung dieser Extension "fdfx_subheader"!
Gibts da irgenwie einen Workaround? Und warum zum Henker ist dieser Subheader standardmäßig nur im "Header" CE verfügbar? Das ist doch ein unding.
gruß