Item.Field.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.Field.Type")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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