ItemPublisher:Items.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:Items.CanEdit")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("ItemPublisher:Items.CanEdit"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("ItemPublisher:Items.CanEdit");
}
Outputting the template tag
<!--@ItemPublisher:Items.CanEdit-->
Check if boolean has a value
<!--@If Defined(@ItemPublisher:Items.CanEdit)-->
Let's output this tag here: <strong><!--@ItemPublisher:Items.CanEdit--></strong>
<!--@EndIf(@ItemPublisher:Items.CanEdit)-->