Discussions
Order of field type many_to_many
about 7 years ago by Urs Weltert | designconcepts GmbH
Hello,
we have defined a content type "artists" with a field type many_to_many "artworks". This field type has the option ui_enabled set to true, so we can order the "artworks" manually in the back-end.
We output the "artworks" in a template file like this:
{% for artwork in artist.artworks %}
...
{% endfor %}
But the order outputted is different from the back-end.
I would like to know: Is there a option for this field type or for the template file, which respects the order set in the back-end?
Regards, Andreas