Forum

Thread tagged as: Question

Displaying only 'year' in the control panel

I'm using type="date" to output a year to the website (format="Y") but I only want the year to appear in the control panel. Is this possible or should I just fall back to type="select" and offer the options of the next 30 years or so?

Martin Underhill

Martin Underhill 5 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Either a select field, or create a field type for it. That's something other people might find useful.

I'll use the select field for now. Writing a custom fieldtype sounds a bit scary as my back-end chops are pretty rudimentary, but could be one for a rainy day levelling up :)

Thanks for keeping me right!

Martin.