ItemPublisher:Item.DetailsUrl.PID
Version: - stringSummary
Returns the url to the page with the details about the item in the following form:
/Default.aspx?ID=[Page ID]8&PID=[Paragraph ID]&itemId=[Item type system name]:[Item id]
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("ItemPublisher:Item.DetailsUrl.PID")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("ItemPublisher:Item.DetailsUrl.PID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("ItemPublisher:Item.DetailsUrl.PID");
}
Outputting the template tag
<!--@ItemPublisher:Item.DetailsUrl.PID-->
Check if string has a value
<!--@If Defined(@ItemPublisher:Item.DetailsUrl.PID)-->
Let's output this tag here: <strong><!--@ItemPublisher:Item.DetailsUrl.PID--></strong>
<!--@EndIf(@ItemPublisher:Item.DetailsUrl.PID)-->