FirstActivePageName

Version: - string  

Summary

Returns Name of first active page in the website language.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("FirstActivePageName")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@FirstActivePageName-->

Check if string has a value

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