[TYPO3-english] Randomly Display tt_news Item with TypoScript

Stefan Reichelt eichelt at web.de
Thu Jun 11 21:56:17 CEST 2015


Hello Scotty,

On 11/06/15 19:58, Scotty C wrote:
> 20=RECORDS 
> 20 { 
> source = 381 
> source.insertData = 1 
> tables = tt_news 
> conf.tt_news > 
> conf.tt_news = TEXT 
> conf.tt_news.field=title 
> } 

As I understand this code, you try to to retrieve a tt_news record with
UID 381, so it kinda always will render the same title.

However inside of renderObj, you are already able to access all fields
of records retrieved by the CONTENT object (since it selects * by default).

So unless I'm mistaken, this should suffice:
20 = TEXT
20.stdWrap.field = title


Kind regards
Stefan


More information about the TYPO3-english mailing list