Template:DesignBaseUrl

Version: - string  

Summary

Returns the URL to the current design, e.g. /Files/Templates/Designs/YourDesign/.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Template:DesignBaseUrl")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Template:DesignBaseUrl"); }

Outputting the template tag

<!--@Template:DesignBaseUrl-->

Check if string has a value

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