CMS_DATE
The content type CMS_DATE provides editor select date, time and format in CONTENIDO backend and print selection in frontent page.
The usage is quite simple, put the code below in your output modul section and you are finished.
The name CMS_DATE specifies which content type should be used and [1] is the index of headline. The index must be integer value.
Note
If you are using more then one CMS_DATE per article, you have to change/increment index of the next CMS_DATE.
echo "CMS_DATE[1]"; or echo "CMS_DATE[100]";
To select date and time click on blue calender(see below screen 1). The date time picker contains three different input areas(see below screen 2).
In the first one you can select the year and month. The secont one is the date of selected year and month.
The last one is the time. The time selection is splitted to the hour and minutes.
After selection just click on the done button and the date time picker will disappear.
In the next step select date time format from the dropdown list and then click on green check button to save the changes.
Tipp
If you want set current date and time, you can do it by clicking on Now button on the bottom of date time picker.
1.
2.
Methods for CMS_DATE
List all methods for CMS_DATE at our API documentation.
Function name | Description |
---|---|
getDateFormat() | Returns the PHP style format string. |
getDateTimestamp() | Get timestamp value for displayed date. |
generateViewCode() | Generates the code which should be shown if this content type is shown in the frontend. |
generateEditCode() | Generates the code which should be shown if this content type is edited. |
Â
Â