[TYPO3-german] tt_news, Untertitel abschneiden...
Bernd Hückstädt
akademie at joytopia.net
Sun Mar 4 10:22:08 CET 2007
Hallo Joey und alle,
jetzt habe ich es auch im Manual von tt_news gefunden:
plugin.tt_news.displayList.subheader_stdWrap {
crop = 140 | ... | 1
ifEmpty.field = bodytext
}
funktioniert einwandfrei
Danke und liebe Grüße
Bernd
Joytopia Akademie und Medienproduktion
Inh. Margret Baier
Pfarrweg 2
D - 74653 Künzelsau-Amrichshausen
Tel. ++49 (0)7940 546 0810
Fax: ++49 (0)7940 547 500
Email: akademie at joytopia.net
www.joytopia.net
Am 04.03.2007 um 09:31 schrieb Bernd Hückstädt:
>
> Am 03.03.2007 um 19:25 schrieb JoH asenau:
>
>>> bei tt_news wird in List und Latest der Text nach einer bestimmten
>>> Länge abgeschnitten.
>>> Wenn man im Flexform "Untertitel abschneiden nach... Zeichen" NICHTS
>>> einstellt, wird der Text am Wortende abgeschnitten und drei
>>> Pünktchen... angefügt, wie sich das gehört.
>>>
>>> Stellt man jedoch eine Anzahl von Zeichen ein, wird mitten im Wort
>>> abgehackt und KEINE Pünktchen... angefügt.
>>>
>>> Ein Upgrade auf die ganz neue Version 2.5.0 (28.02.2007) brachte
>>> keinen Unterschied.
>>
>> TSref sagt:
>> http://typo3.org/documentation/document-library/references/
>> doc_core_tsref/4.0.0/view/5/1/
>>
>> stdWrap =>
>> crop
>> Crops the content to a certain length
>>
>> Syntax: +/- (chars) = from left / from right | [string] | [boolean:
>> keep
>> whole words]
>> Examples:
>> 20 | ... => max 20 characters. If more, the value will be
>> truncated to
>> first 20 chars and prepended with "..."
>> -20 | ... => max 20 characters. If more, the value will be
>> truncated to last
>> 20 chars and appended with "..."
>> 20 | ... | 1 => max 20 characters. If more, the value will be
>> truncated to
>> last 20 chars and appended with "...". If the division is in the
>> middle of a
>> word, the remains of that word is removed.
>> Uses "renderCharset" for the operation.
>>
>> HTH
>>
>> Joey
>
> Danke Joey,
> werde mich da mal reinarbeiten.
> Ich denke dass das bei tt_news schlichtweg ein Bug ist. Schließlich
> geh tes ja, wenn man keine maximale Zeichenlänge angibt.
> Wenn man es über crop lösen kann... um so besser.
> Liebe Grüße
> Bernd
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>
More information about the TYPO3-german
mailing list