What is raw values?
Sitecore always stores field values as plain text in the appropriate Sitecore database (in the Valuecolumn of the Fields table).
In Sitecore, there are two ways of getting data out of a field
–
the raw value or the renderedvalue.
Sitecore Interview QuestionsSitecore Journey Page | 15
A field’s raw value is how the data is stored in the underlying database –
for simple fields suchas Single Line Text, there is no d
ifference between the rendered and raw values; it’s just plain
text.
This is not the case for more complex field types, such as
General Link, Image, or Rich Text.
Take the raw value of a General Link field, for instance–if you enable raw values in the Content Editor(by clicking theView tab and ticking Raw values) and look at an item with a General Link field, you willsee that the value stored in the database is
custom XML:<link linktype="internal" url="/Home/History/Old activities" target="" id="{CB2BC023-C9CF-4086-811E-0952ADFA5AF9}" />
The following table provides an example of each field type, as the value is stored in the Sitecoredatabase.
Sitecore always stores field values as plain text in the appropriate Sitecore database (in the Valuecolumn of the Fields table).
In Sitecore, there are two ways of getting data out of a field
–
the raw value or the renderedvalue.
Sitecore Interview QuestionsSitecore Journey Page | 15
A field’s raw value is how the data is stored in the underlying database –
for simple fields suchas Single Line Text, there is no d
ifference between the rendered and raw values; it’s just plain
text.
This is not the case for more complex field types, such as
General Link, Image, or Rich Text.
Take the raw value of a General Link field, for instance–if you enable raw values in the Content Editor(by clicking theView tab and ticking Raw values) and look at an item with a General Link field, you willsee that the value stored in the database is
custom XML:<link linktype="internal" url="/Home/History/Old activities" target="" id="{CB2BC023-C9CF-4086-811E-0952ADFA5AF9}" />
The following table provides an example of each field type, as the value is stored in the Sitecoredatabase.