Item.[FieldSystemName].Type

Version: - string  

Summary

Returns the type of the item field, e.g. File, Text.

Settings

The value is based on the Type field in the field settings for the item field.

(Management center - System - Item fields - Item field - Field - Field settings - Type)

Examples

Outputting the template tag

@GetString("Item.[FieldSystemName].Type")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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