Global:Area.Culture.NativeCountryName
Version: - globalvalueSummary
Returns the native country name for the website culture in this format: Danmark.
Settings
Based on the setting for the culture of the website.
(Modules - Websites - website - Regional settings)
Examples
Outputting the template tag
@GetGlobalValue("Global:Area.Culture.NativeCountryName")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Area.Culture.NativeCountryName"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetGlobalValue("Global:Area.Culture.NativeCountryName");
}
Outputting the template tag
<!--@Global:Area.Culture.NativeCountryName-->
Check if globalvalue has a value
<!--@If Defined(@Global:Area.Culture.NativeCountryName)-->
Let's output this tag here: <strong><!--@Global:Area.Culture.NativeCountryName--></strong>
<!--@EndIf(@Global:Area.Culture.NativeCountryName)-->