okfde / fragdenstaat_de

Froide Theme for fragdenstaat.de
https://fragdenstaat.de
Other
125 stars 21 forks source link

add RandomOrder cms plugin #227

Closed krmax44 closed 3 years ago

krmax44 commented 3 years ago

This plugin renders all child instances in random order. If the only child is a Row/Bootstrap Row, its children will be shuffled.

stefanw commented 3 years ago

This will likely not work due to caching! All plugins are cached by default, you have to set cache = False to prevent that. However, cache = False will prevent the whole page from being cached which is not ideal.

I would suggest implementing the shuffling in JavaScript.