I search a way to randomize the order of tx_news article.
Is it possible without changing the NewsRepository.php?
If not, what would be the best way to add a random order?
I search a way to randomize the order of tx_news article.
Is it possible without changing the NewsRepository.php?
If not, what would be the best way to add a random order?
News hasn't such possibility in its repository.
Assuming that you most probably want to use random order per each page view... I'd suggest to use ... JavaScript. Otherwise you will need to use non-cached content or page, which will influence your performance.
Of course you can create custom extension in which you'll be able to extend the repository class to add missing methods and render in your template, anyway in this case I also suggest supporting it with JS for better performance.