Forums / Developer / Date field on a form
David Santiso
Sunday 16 January 2011 4:19:17 am
Hi,
I've created a new class. This class is a form. I put a date field. The English date format is year/month/day and I would like to appear month/day/year. Where should I change this?
Another issue is that when I insert the form somewhere in the front, appears a calendar to select a date, but when it is inserted and a user fills the fields, the calendar doesn't appear. How can I make it appear?
Thanks,
David
Carlos Revillo
Sunday 16 January 2011 11:08:30 pm
you need to make your own template for that. take a loot at how this works in ez publish.
http://doc.ez.no/eZ-Publish/Technical-manual/4.4/Concepts-and-basics/Designs
Monday 17 January 2011 10:37:51 am
Yes, I'm using my own template, but don't know what instructions should I use to do this. Do I have to use some features of the eZ object or code TPL?
H-Works Agency
Tuesday 18 January 2011 4:19:27 am
You have to code your own tpl file.
Override content/datatype/edit/ezdate.tpl with your own and play with date parts order or add a date widget.
+
EZP is Great
Tuesday 18 January 2011 12:06:24 pm
Thanks. If i have another doubt about it i'll let you know.
On the issue of getting the calendar. I copied the admin page "ezdate" template. Now I see the image of the calendar, but doesn't work.
One other thing. How are CSS overwritten?
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0002 secs