The kitcommand ~~ page_modified_when ~~
return the date and time of the last modification for the current page or the page with the given PAGE_ID
. The date/time string can be formatted and localized.
All parameters are optional.
By default the kitCommand will show the modification date and time for the current page.
You can specify an PAGE_ID
:
~~ page_modified_when page_id[123] ~~
will show the date and time for the page with the PAGE_ID
123
.
By default page_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:
~~ page_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:
~~ page_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).