留言板
date/time field in structure
Hello,
I work with Liferay 6.2 CE.
I added a new structure, in which I added a date field. when adding content I can not specify the time.
how I can configure the field the way it gives me the possibilty to enter the date and time ?
should i add a new field ?
I work with Liferay 6.2 CE.
I added a new structure, in which I added a date field. when adding content I can not specify the time.
how I can configure the field the way it gives me the possibilty to enter the date and time ?
should i add a new field ?
same problem !
Adel Bayoudh:
same problem !
There is no native Liferay picker field type for time - you'll have to use a separate field (or collection of fields).
- Use a text field, and ensure that the time is entered like HH:MM or HH:MM:SS or something similar.
- Use two select fields, where one selects the hour (1-23) and the other selects the minutes (0-59, or perhaps 0, 5, 10, 15, ...)
- Use "number" fields (to ensure they don't enter negative numbers) instead of select fields