PrimaryDomain

Version: - string  

Summary

Returns primary domain of the website language, based on Primary Domain field in the website language backend.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("PrimaryDomain")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("PrimaryDomain"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("PrimaryDomain"); }

Outputting the template tag

<!--@PrimaryDomain-->

Check if string has a value

<!--@If Defined(@PrimaryDomain)--> Let's output this tag here: <strong><!--@PrimaryDomain--></strong> <!--@EndIf(@PrimaryDomain)-->