[TYPO3-german] stdWrap.substring und wrap

Chris Wolff - AERTiCKET AG cwolff at aer.de
Wed Jun 18 10:31:51 CEST 2014


Hi Christof,
Crop und / substring wissen nichts von html das heist sie schneiden auch zwischen html-tags ab. Deswegen sollte man nur 
einfachen text mit diesen methoden behandeln.

 Gruss chris


-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von Peter Linzenkirchner
Gesendet: Mittwoch, 18. Juni 2014 10:23
An: office at hc-media.org; German TYPO3 Userlist
Betreff: Re: [TYPO3-german] stdWrap.substring und wrap

Hallo Christof, 

das hier
10.stdWrap.crop = 200 | ... | 1

funktioniert nicht? 

("max 200 characters. If more, the value will be truncated to the first 200 characters and prepended with "...". If the division is in the middle of a word, the remains of that word is removed. Uses "renderCharset" for the operation.")

Gruß
Peter


Am 18.06.2014 um 10:10 schrieb HC-Media <office at hc-media.org>:

> 
> 
> Liebe Liste,
> 
> ich habe eine Frage bezüglich Text in Zusammenhang mit substring und 
> wrap.
> 
> Anforderung: Text nach X Zeichen abschneiden und wenn der Text länger 
> ist als X Zeichen, danach noch "..." anfügen.
> 
> Code:
> 10 =
> TEXT
> 10.value = Mein Text
> 10.stdWrap.substring = 0,200
> 10.stdWrap.wrap =
> |... 
> 
> Der Wrap sollte in diesem Fall aber nicht ausgeführt werden, da der 
> Text weniger als 200 Zeichen hat.
> 
> Wie kann ich dies denn
> realisieren?
> 
> LG
> Christof
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

--
Xing: http://www.xing.com/profile/Peter_Linzenkirchner
Web: http://www.typo3-lisardo.de
Facebook: http://tinyurl.com/lisardo-multimedia

_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list