DwPageUpdateDateTime
Version: - stringSummary
Returns a string showing the date and time of the last update of the current page.
Settings
The value is generated automatically based on the timestamp of the edited page.
Remarks
The value is only visible if Display ´last update´ is enabled for the page.
(Page > General tab > Accessibility panel)
Examples
Outputting the template tag
@GetString("DwPageUpdateDateTime")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DwPageUpdateDateTime"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DwPageUpdateDateTime");
}
Outputting the template tag
<!--@DwPageUpdateDateTime-->
Check if string has a value
<!--@If Defined(@DwPageUpdateDateTime)-->
Let's output this tag here: <strong><!--@DwPageUpdateDateTime--></strong>
<!--@EndIf(@DwPageUpdateDateTime)-->