ItemPublisher:Item.EditUrl

Version: - string  

Summary

Returns the url to the page where you can edit the item in the following form:

/Default.aspx?ID=[Page ID]8&PID=[Paragraph ID]&cmd=edit&itemId=[Item type system name]:[Item id]

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("ItemPublisher:Item.EditUrl")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("ItemPublisher:Item.EditUrl"); }

Outputting the template tag

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

Check if string has a value

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