[TYPO3-dev] Subtitle
Peter Klein
peter at clioonline.dk
Mon Aug 29 18:30:14 CEST 2011
Hi Robert.
It looks like t3lib_extMgm::addToAllTCAtypes() is broken in TYPO3
v4.5+, as it works as it's supposed to in previous versions of TYPO3.
You could use a "dirty" approch and use regex to insert the extra
field, until the bug is fixed.
-- cut --
t3lib_div::loadTCA("tt_content");
if (!preg_match('/subheader;;8,/',
$TCA['tt_content']['types']['text']['showitem'])) {
$TCA['tt_content']['types']['text']['showitem'] =
preg_replace('/;header,/', '$0subheader;;8,',
$TCA['tt_content']['types']['text']['showitem']);
}
-- cut --
--
Peter Klein
On Mon, 29 Aug 2011 13:08:54 +0200, Robert Wildling
<robertwildling at gmail.com> wrote:
>Can at least somebody of you guys point out the location where there is
>an example of how the subheader field is made visible again in TYPO3 4.5.5?
>
>The regular approach
>t3lib_extMgm::addFieldsToallTCATypes (or whatever - this is only by
>memory) ("tt_content", 'subheader;;8', '','after:header');
>put the field in an extra TAB!!!! And not below header as indicated.
>
>Where is the documentation for that???
>
>What is the reason for hiding the subtitle in TEXT and TEXTPIC??? A
>reason that made to extra extensions necessary??!!
>
>Thanks for your feedback - if you developer guys intend to react to the
>public once...
>
>
>> Dear TYPO3 developers,
>>
>> This is another plea to ask you to make the subtitle visible by default.
>>
>> I know there has already been a lot of discussion here about this, but
>> my main argument is that there are so many fields visible by default
>> that are not used, but are there anyway. Why not subtitle too? Those who
>> don't need it just leave the field empty - like so many others...
>>
>> Subtitle is definately one of those field that is used quite often (just
>> google).
>>
>> So I sincerely ask you to spare us some work and just make it visible as
>> it is in the CE "Header" eg!
>>
>> PLEEEEEEEASEEEE!!!!!!
>>
>> Thanks!
More information about the TYPO3-dev
mailing list