ItemPublisher:Item.Fields.Any

Version: - boolean  

Summary

Returns True if there exist any item fields 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:Item.Fields.Any")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("ItemPublisher:Item.Fields.Any"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("ItemPublisher:Item.Fields.Any"); }

Outputting the template tag

<!--@ItemPublisher:Item.Fields.Any-->

Check if boolean has a value

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