[TYPO3-english] tt_news Crop text
Stano Paška
stano.paska at gmail.com
Mon May 17 09:10:01 CEST 2010
Hi.
You can use something like this:
subparts.mediacontent {
// if you use latest view, then displayLatest
displayList.subheader_stdWrap {
stripHtml = 1
crop = 300|...|1
}
}
And always look at Web/Template Typoscript Object browser, it is your
best friend.
Stano.
On Mon, May 17, 2010 at 8:50 AM, ppraveenk <praveen.penupati at gmail.com> wrote:
>
> Hi,
>
> I have the typoscript code that uses tt_news to display the latest article.
> Please find the code below:
>
> 1. subparts.mediacontent < plugin.tt_news
> 2. subparts.mediacontent {
> 3. templateFile = fileadmin/templates/media.html
> 4. defaultCode = LIST
> 5. limit = 1
> 6. singlePid = 12
> 7. pid_list = 13
> 8. noPageBrowser = 1
> 9. backPid = 21
> 10. }
>
> Now my requirement is that I should be able to crop the content to a certain
> length.
> Can someone please tell me, how can I do that?
> I had studied the stdWrap.Crop property, but not sure how to use it with
> tt_news.
> I just started with Typo3 and typoscript and really need some help in
> understanding.
> Any suggestions are grately appreciated.
>
> cheers!
> praveen.
> --
> View this message in context: http://old.nabble.com/tt_news-Crop-text-tp28579977p28579977.html
> Sent from the TYPO3 English mailing list archive at Nabble.com.
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list