Global:Pageview.LayoutTemplate
Version: - globalvalueSummary
Returns the name of the layout template that the page is using.
Settings
The value is based on the layout selection in Website settings - Layout or in Page properties - Layout.
Examples
Outputting the template tag
@GetGlobalValue("Global:Pageview.LayoutTemplate")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Pageview.LayoutTemplate"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetGlobalValue("Global:Pageview.LayoutTemplate");
}
Outputting the template tag
<!--@Global:Pageview.LayoutTemplate-->
Check if globalvalue has a value
<!--@If Defined(@Global:Pageview.LayoutTemplate)-->
Let's output this tag here: <strong><!--@Global:Pageview.LayoutTemplate--></strong>
<!--@EndIf(@Global:Pageview.LayoutTemplate)-->