ItemPublisher:Item.Field.EditorType

Version: - string  

Summary

Returns editor type of the item field like Dynamicweb.Content.Items.Editors.TextEditor, Dynamicweb

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("ItemPublisher:Item.Field.EditorType")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("ItemPublisher:Item.Field.EditorType"); }

Outputting the template tag

<!--@ItemPublisher:Item.Field.EditorType-->

Check if string has a value

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