I have so far failed to find any documentation on the twig functions and filters that appear to be custom in Grav. More specifically order() which I have found among the twig recipes, but can't successfully modify to order by anything else but date.
I am seeking to order listed post by some custom page header. Ideally.
Thanks.
Hi Daniel, order is not a Twig filter but a method of the class.
What page.find('/blog').children.order('date', 'desc').slice(0, 5) does is:
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 1 | 719 | 2 weeks ago | ||
| 0 | 3077 | 9 years ago | ||
| 2 | 2017 | 9 years ago | ||
| 2 | 5374 | 9 years ago | ||
| 1 | 4167 | 9 years ago |