We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Date fieldorder issue
I've got a situation where I only need the month and date in a date field. I'm using the fieldorder attribute to limit the fields in the control panel to just the year and month:
<perch:content id="year" type="date" label="Date of event" fieldorder="ym" />
This looks good when editing the item in the CMS, but on the item list in the region (I've got the date field in the 'Item list column IDs' region option) it's losing the date entirely and setting the date to the default 1970. Also, it's not outputting the date to the site.
The fieldorder thing was a 'eureka' moment as I've had to output just a year to a site before and had to hide the month and day inputs in the control panel using some custom CSS in perch/addons/plugins/ui/ which felt a bit nasty. But it was necessary to keep the control panel UI clean and intuitive. I suppose a
type="select" would serve, but the month and year would be on two lines and it would need a lot of options in the
I guess this isn't truly a bug, but it would make my day if you were to allow just any one/two of the year, month and date, rather than just reordering them.
Thanks for taking a look :)
Want to reply to this thread?Login with Perch