The kitcommand ~~ cms_modified_when ~~
return the date and time of the last modification of a page of the Content Management System (CMS). The date/time string can be formatted and localized.
All parameters are optional.
By default cms_modified_when
will return a date and time formatted and localized, specified by the locale DATETIME_FORMAT
- you will find these formatting locales in
/kit2/extension/phpmanufaktur/phpManufaktur/Basic/Data/Locale/Metric
you can add your own formats in
/kit2/extension/phpmanufaktur/phpManufaktur/TemplateTools/Data/Locale/Custom
or you use any date/time format for the date()
function.
Example:
~~ cms_modified_when format[Y-m-d] ~~
will return a date formatted as Year-Month-Day, i.e. 2014-05-15
.
If you are using xxx_FORMAT
locales for formatting the kitCommand will try to localize this format. By default page_modified_when
will use the locale for the current page. You can also force the kitCommand to use a specific locale:
~~ cms_modified_when locale[fr] ~~
will try to translate the xxx_FORMAT
locale to French. The French locale file must exist, otherwise the kitCommand will fall back to en
(English).