DwPageUpdatedDate
Version: - dateSummary
Returns a string showing the date of the last update of the current page.
Settings
The value is generated automatically based on the timestamp of the edited page.
Remarks
Includes the option to add date extensions in order to format the updated date.
See Date/time tag extensions for further details about formatting this date.
(Prefix : DwPageUpdatedDat)
Examples
Outputting the template tag
@GetDate("DwPageUpdatedDate")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetDate("DwPageUpdatedDate"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetDate("DwPageUpdatedDate");
}
Outputting the template tag
<!--@DwPageUpdatedDate-->
Check if date has a value
<!--@If Defined(@DwPageUpdatedDate)-->
Let's output this tag here: <strong><!--@DwPageUpdatedDate--></strong>
<!--@EndIf(@DwPageUpdatedDate)-->