Return to doc.sitecore.com

Valid for Sitecore 5.3.1
15.  Simple Types - Text, Icon, ValueLookup, Tristate, Html, Memo and Rich Text
Prev

These field types are stored as simple types. 

Resolve the value by using raw data extraction:

// Text, Icon, ValueLookup, Tristate, Html, Memo, Rich Text
public static string outText(Sitecore.Data.Items.Item item, string sFieldName)
{
  System.Text.StringBuilder builder
= new System.Text.StringBuilder();
  builder.Append(
"Plain text: " + item.Fields[sFieldName]);
  
return builder.ToString();
}

 


Prev