ItemPublisher:Item.Url

Version: - getstring  

Summary

Returns the link to the page, that is based on item in the following form:

/Default.aspx?Id=[Current item based page id]

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGetString("ItemPublisher:Item.Url")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGetString("ItemPublisher:Item.Url"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGetString("ItemPublisher:Item.Url"); }

Outputting the template tag

<!--@ItemPublisher:Item.Url-->

Check if getstring has a value

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