Item.Field.Value

Version: - string  

Summary

Returns the value from the item field that is filled on a page/paragraph.

Settings

The value is based on the value that is filled in the item input field on the page/paragraph.

Examples

Outputting the template tag

@GetString("Item.Field.Value")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Item.Field.Value"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Item.Field.Value"); }

Outputting the template tag

<!--@Item.Field.Value-->

Check if string has a value

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