We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
|shuffle
This ought to work:
{% setcontent pages = "pages" limit 4 %} {% for page in pages|shuffle %} <li>{{ page.id }} - {{ page|title }}</li> {% endfor %}
But, it throws an exception instead:
We should ensure the |shuffle filter works on Pagerfanta objects, as well as regular arrays.
Additionally, check if this also applies to sort, first, last, batch, length (does work, but wrong results), reverse and slice.
sort
first
last
batch
length
reverse
slice
The text was updated successfully, but these errors were encountered:
Afaik, only |length doesn't work. The rest seemed to work fine for me. #1633 fixes length and shuffle.
|length
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This ought to work:
But, it throws an exception instead:
We should ensure the
|shuffle
filter works on Pagerfanta objects, as well as regular arrays.Additionally, check if this also applies to
sort
,first
,last
,batch
,length
(does work, but wrong results),reverse
andslice
.The text was updated successfully, but these errors were encountered: