ItemPublisher:Item.CanEdit
Version: - booleanSummary
Returns True
if "Allow editing of items" is enabled in paragraph settings for the module.
Settings
The value is generated automatically.
Remarks
Returns blank if editing is disabled.
Examples
Outputting the template tag
@GetBoolean("ItemPublisher:Item.CanEdit")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("ItemPublisher:Item.CanEdit"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("ItemPublisher:Item.CanEdit");
}
Outputting the template tag
<!--@ItemPublisher:Item.CanEdit-->
Check if boolean has a value
<!--@If Defined(@ItemPublisher:Item.CanEdit)-->
Let's output this tag here: <strong><!--@ItemPublisher:Item.CanEdit--></strong>
<!--@EndIf(@ItemPublisher:Item.CanEdit)-->