Dw_Title
Version: - stringSummary
Returns the title for the current page.
Settings
The value is based on the Title input field in the page properties page.
(Page > Properties > Menu item tab > Meta > Title)
Examples
Outputting the template tag
@GetString("Dw_Title")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Dw_Title"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Dw_Title");
}
Outputting the template tag
<!--@Dw_Title-->
Check if string has a value
<!--@If Defined(@Dw_Title)-->
Let's output this tag here: <strong><!--@Dw_Title--></strong>
<!--@EndIf(@Dw_Title)-->