-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
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
Custom header collection sorting doesn't support date format #1261
Comments
I've looked at this and really we have no way to really know what or how to order custom header type sort fields. For this reason, I suggest you change the You can then reformat this on display via the Twig Date filter: http://twig.sensiolabs.org/doc/2.x/filters/date.html |
The thing is, though, that the format in the field is defined by this blueprint:
And the actual data is then set through Admin plugin, is there any way to change the format Admin plugin uses? |
This is now fixed. The fix involves a new option for the header.eventdate:
type: datetime
label: Event date
format: 'Y-m-d' which will force the format to |
Hi,
I'm trying to establish custom sorting of collection of pages in a timetable like this:
Unfortunately it doesn't seem to support datetime format that is stored in this custom header (i.e.
eventdate: '03-02-2017 22:18'
).As a result event from February 3rd comes before January 20th for example. I can resort to using just date for sorting, but date of creation an item is not an event date per se.
The text was updated successfully, but these errors were encountered: