Hey there,
I am creating a calendar thingy which is expected to contain some 200 elements at any given time (events for the next six months). To make the handling easier I wanted to do this with flex-objects and not a custom page template, because in pages the list of sibling events in the Advanced tab would be extremely long.
However – I of course want to be able to sort these entries by date, and that would require me to have one associated field with the date as a “YYYY-MM-DD” string, since flex-objects don’t sort properly by date at least in Admin (the way I understand it).
So what I’ve done is, in termine.yaml (flex-objects definition file):
# List view
list:
title: name
order:
by: datum
dir: asc
fields:
published:
field:
type: toggle
label: Publ
width: 8
titel:
link: edit
datum:
format: 'Y-m-d'
This seems to do nothing. The format stays “m/d/Y” and the list doesn’t get sorted by that either. What am I doing wrong?