[TYPO3-ttnews] Add More Link when String is found

Malte Jansen mail at maltejansen.de
Wed Oct 24 09:24:30 CEST 2007


undkonsorten schrieb:
> Hey List!
> I want to add a more tag like used in Wordpress.
> When you add a special string (eg. <!--more-->) to the bodytext, tt_news 
> is supposed to display the bodytext up to the <!--more-->, hide the rest 
> of the text and add a more link instead.
> If no <!--more--> is entered, the whole text is visible and no 
> [more]-link is added.
> I made several attempts to realise this via Typoscript, but failed. It 
> should be possible with eg. ".split" or ":= replaceString", not for me 
> though.
> 
> Do you have an idea or some code for me?
> 
> Thanks,
> Botho

Hi,

you can use "crop" and "append" with a wrapper for your purpose. There 
are Several Examples in the internet. But crop of the bodytext for list 
should be implemented directly in the static template. You only have to 
leave the subheader empty. Than the bodytext is automaticly used.

Malte


More information about the TYPO3-project-tt-news mailing list