Discussions
Order many_to_many relations
Hello, I have two models with a `many_to_many` relation. I want to display these models on a page in the same order as I set in back-office, but instead they are ordered based on the setting in my model definition file. Is there any way to control the display order in the Liquid template?
Regards, Igor
Posted by Igor over 1 year ago
mass deleting "public submission" data
Thanks to Didier and the LocomotiveCMS team for building such a nice CMS!
I have a question:
On a customer website there is a backlog of "Contact messages" (almost 6000).
Right now, the "page level block delete" gets the 10 items per page (those being being displayed), which would mean that there are 600 pages of three clicks on each to delete this old data.
Is there a way to display say 50 (or 100) items per page so that there would be 120 (60) pages needed to delete this old data?
One other option is me trying to delete it through the mongo backend, but this is not available to the customer.
Posted by John Read about 2 years ago
order_by attribute on with_scope not working?
Neither on the engine nor on wagon, this ordering seems to work:
```
{% with_scope start.gt: now, order_by: 'start.asc' %}
{% assign future_events = contents.events %}
{% endwith_scope %}
```
The order as defined in events.yml is start.desc, which is also the order I get regardless of the order defined in the with_scope tag.
Posted by Tobias Geisler over 8 years ago