How to View Raw Values in Sitecore CMS

February 15, 2017

Blog | Development | How to View Raw Values in Sitecore CMS
How to View Raw Values in Sitecore CMS

This is the thirty-fourth post in a series about learning how to use and develop for Sitecore CMS; it is the follow-up post to “How to Show the Folder Editor in Sitecore CMS”. In this “How to” post I cover how to view raw values in Sitecore CMS.

What Are Raw Values?

In Sitecore, field values are all stored as strings. Even if the field appears to contain a number or date or item reference, behind-the-scenes the value that Sitecore stores is just text.

For text fields, the values are straightforward. The text is the text is the text. For other field types, the fields need to contain data stored in a specific format so that the values can be retrieved as structured data.

For example, an image field stores the reference to the image and any custom properties as an XML <image> node.

Viewing Raw Values

To view raw values you’re going to need a field that has value with structured data.

Select the /sitecore/content/Example/Settings item.

Set the “Logo” field to one of the images in the media library.

Sitecore 8 showing the Logo field with a stock image
Sitecore 8 showing the Logo field with a stock image

Save the changes.

Now you can enable raw values to see the data that drives the image field.

Select the “View” tab in the ribbon.

Check the “Raw values” checkbox in the “View” section of the “View” tab.

The image field will turn into a text field showing the raw data for the field.

Sitecore 8 showing the raw values for the Logo field
Sitecore 8 showing the raw values for the Logo field

Unchecking the “Raw values” checkbox will stop displaying the raw field values and return Sitecore to its default behavior.

Tim Leverett

Senior Developer
Tags
  • Development
  • Sitecore
  • Tutorial
Sitecore Survival Guide Volume 1

If you found this post helpful, there are plenty more where it came from! You'll find the first 10 here.

Download the first 10 posts in our Sitecore how-to series by Developer Tim Leverett!

Recent Work

Check out what else we've been working on