[TYPO3-english] Randomly Display tt_news Item with TypoScript
Scotty C
superscotty19 at yahoo.com
Thu Jun 11 22:24:51 CEST 2015
YES!!!
Exactly right, Stefan! Between Loek's category addition and your modification (which btw I swear I tried before reaching out to the list, haha) we're set.
One more thing ... is it possible to create a "30" element and make it the text field of the news item? Something like (pseudo):
30 = TEXT
30.stdWrap.field = text
Thanks again,
-Scott.
----- Original Message -----
> From: Stefan Reichelt <eichelt at web.de>
> To: typo3-english at lists.typo3.org
> Cc:
> Sent: Thursday, June 11, 2015 1:56 PM
> Subject: Re: [TYPO3-english] Randomly Display tt_news Item with TypoScript
>
> 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
> _______________________________________________
> 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