Template:BaseUrl

Version: - string  

Summary

Returns the URL to the current template, e.g. /Files/Templates/Designs/YourDesign/ItemPublisher/List/.

 

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Template:BaseUrl")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Template:BaseUrl-->

Check if string has a value

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