ItemPublisher:Items.Any
Version: - booleanSummary
Returns True
if there exist any items with the selected item type and in the selected website/page.
Settings
The value is generated automatically.
Remarks
Returns blank
if there are no items.
Examples
Outputting the template tag
@GetBoolean("ItemPublisher:Items.Any")
Check if tag has a value
@if(!bool.IsNullOrWhiteSpace(GetBoolean("ItemPublisher:Items.Any"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
bool storedTag = GetBoolean("ItemPublisher:Items.Any");
}
Outputting the template tag
<!--@ItemPublisher:Items.Any-->
Check if boolean has a value
<!--@If Defined(@ItemPublisher:Items.Any)-->
Let's output this tag here: <strong><!--@ItemPublisher:Items.Any--></strong>
<!--@EndIf(@ItemPublisher:Items.Any)-->