[TYPO3] Random Text + Image

Tapio Markula tapio.markula at dnainternet.net
Tue Jun 13 20:05:44 CEST 2006


JoH wrote:
>>>>Good to know (I wsa pretty sure that the
>>>>"empty_content" was just for demonstration
>>>
>>>anyway).
>>>
>>>>OK, so I'm sorry to say it, but could you simply
>>>
>>>spell
>>>
>>>>it out for me or direct me to a link where it is?
>>>
>>>You can find almost everyting concerning TS from
>>>TSRef,
>>>look at for examle object 'CONTENT'
>>
>>NOW we're getting somewhere! Here's what I did:
>>
>>subparts.FEATURE = CONTENT
>>subparts.FEATURE {
>>   table = tt_content
>>   select {
>>        pidInList = 1092
>>     }
>>}
>>
>>However, the result is that it's displaying all the
>>random content elements at once (which makes sense
>>because I haven't told it to use the plugin). My
>>question now is, how do I plug in the "randomcontent"
>>extension so that it parses all the content and just
>>displays one element at a time?
> 
> 
> subparts.FEATURE = CONTENT
> subparts.FEATURE {
>     table = tt_content
>     select {
>         pidInList = 1092
>         max = 1
>         orderBy = rand()
>     }
> }
> 
> Should do the job.
> 
> Joey
> 
And *no extension* is needed - just TS.
Good idea.



More information about the TYPO3-english mailing list