Am 06.09.2011 18:35, schrieb Peter Klein:
http://lists.typo3.org/pipermail/typo3-dev/2011-August/044109.html
--
Peter Klein
On Tue, 06 Sep 2011 14:15:31 +0200, Josef Florian Glatz
<ty...@josdesign.at> wrote:
Hello list,
I've found a snippet howto re-enable the subheader for tt_content table
in be.
t3lib_extMgm::addToAllTCAtypes("tt_content", 'subheader;;8', '',
'after:header');
After this, my subheader is positioned at the "Extended" Tab. Can I
position this "new" field after the header? The syntax my snippet seems
to be outdated.
thx in advance!
Thx for your support!
I've re-enabled subheader in TYPO3 4-5 with the following snippets. Is
there an easier way to enable? Or maybe a possiblity to make it
compatible with future TYPO3 releases without checking if csc has
changed after a release-upgrade?
extTables.php:
---------------
# re-enabling Subheaders tt_content
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addFieldsToPalette("tt_content",'header','subheader;;8','after:header');
TypoScript:
--------------
//-----------------------------------------
// subheader für alle bekannten tt_content elemente re-enablen
lib.subheader = TEXT
lib.subheader {
field = subheader
required = 1
dataWrap = <h5 class="subheader subheaderlayout-{field:layout}">|</h5>
htmlSpecialChars = 1
editIcons = tt_content:subheader,layout
editIcons.beforeLastTag = 1
editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
prefixComment = 2 | Subheader:
}
//-----------------------------------------
// lib.subheader mit jeden type mergen
tt_content.header {
// Typ .header beinhaltet in .20 eine Subheaderkonfiguration)
20 >
// füllen mit Konfiguration für aktuelles Projekt
20 < lib.subheader
}
tt_content.text {
15 = TEXT
15 < lib.subheader
}
tt_content.image {
15 = TEXT
15 < lib.subheader
}
tt_content.textpic {
10.15 = TEXT
10.15 < lib.subheader
}
tt_content.bullets {
15 = TEXT
15 < lib.subheader
}
tt_content.table {
15 = TEXT
15 < lib.subheader
}
tt_content.uploads {
15 = TEXT
15 < lib.subheader
}
tt_content.table {
15 = TEXT
15 < lib.subheader
}
tt_content.multimedia {
15 = TEXT
15 < lib.subheader
}
tt_content.swfobject {
15 = TEXT
15 < lib.subheader
}
tt_content.qtobject {
15 = TEXT
15 < lib.subheader
}
tt_content.media {
15 = TEXT
15 < lib.subheader
}
tt_content.search {
15 = TEXT
15 < lib.subheader
}
tt_content.login {
15 = TEXT
15 < lib.subheader
}
tt_content.splash {
15 = TEXT
15 < lib.subheader
}
tt_content.menu {
15 = TEXT
15 < lib.subheader
}
tt_content.shortcut {
15 = TEXT
15 < lib.subheader
}
tt_content.list {
15 = TEXT
15 < lib.subheader
}
--
Regards,
Josef Florian Glatz
http://typo3blog.at
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english