Item.[FieldSystemName]

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 in the item field.

Examples

Outputting the template tag

@GetString("Item.[FieldSystemName]")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Item.[FieldSystemName]"); }

Outputting the template tag

<!--@Item.[FieldSystemName]-->

Check if string has a value

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