[TYPO3-ttnews] Ext:news - random order in list view

BENCH Artwork lists at bench-artwork.ch
Tue Aug 19 11:55:43 CEST 2014


there is a issue on forge about this: https://forge.typo3.org/issues/56903
It would be nice to see this feature on a future version of news!

gr. Benjamin


Am 19.08.2014 um 11:28 schrieb Frans Saris <franssaris at gmail.com>:

> This isn't possible out of the box because the Extbase query object doesn't
> support random.
> 
> gr. Frans
> 
> 
> 2014-08-19 8:42 GMT+02:00 Florian Schaeffer <florian.schaeffer at mercoline.de>
> :
> 
>> Hello,
>> 
>> I wanted to ask whether a random order of news items would be possible at
>> all using the Ext:news (currently I'm using 2.3 but will be upgrade to 3 in
>> the near future).
>> 
>> In tt_news there was a configuration listOrderBy = random which is not
>> possible in Ext:news.
>> 
>> The option allowOrderBy allows me to define additional allowed order
>> fields but all of them has to be "real" fields as they get appended to the
>> table name in Extbase.
>> 
>> If I try to set allowOrderBy = rand() or random an exception is thrown
>> stating the field <tablename>.random could not be found.
>> 
>> Any idea how to get random ordering in Ext:news? And what about caching
>> the output? Could the element be cached and only the order of elements
>> USER_INT? Any ideas?
>> _______________________________________________
>> TYPO3-project-tt-news mailing list
>> TYPO3-project-tt-news at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news
>> 
> _______________________________________________
> TYPO3-project-tt-news mailing list
> TYPO3-project-tt-news at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news



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