TakioTk
1
Hello,
is there a possibility to sort subpages in panel by a custom field reverse?
num:
mode: date
field: startdate
sort:
mode: date
field: startdate
this works but asc
.
But I can’t add ‘flip’ or ‘desc’ somwhere, like:
num:
mode: date
field: startdate
sort:
mode: date flip
field: startdate
Thanks for help!
texnixe
2
Since you number by that field anyway, a simple
pages:
sort: flip
should do the job?
TakioTk
3
This is not going to work.
# /site/blueprints/news.yml
title: News
pages:
template:
- event
- archiv-item
num:
mode: date
field: startdate
sort: flip
This causes this:
texnixe
4
Then try this:
pages:
sort: startdate desc
1 Like
TakioTk
5
Yep, it works.
I was sure I tried that before, hmm,
Thanks a lot
texnixe
6
It’s missing from the docs, yet, I had already added it but failed to push. Need to do that now.
1 Like