9

The parameters of the GetValue methods of the Sitecore.Data.Fields.Field class enable developers to restrict the origin of the returned value to the Fields:

  • StandardValue
  • DefaultValue
  • FallbackValue
  • InheritValue
  • InnerValue

What are the differences between each of these?

7
  • Inner value: the "raw" value (as you can see in the editor)
  • Standard value: value inherited from Standard Values of the template
  • Fallback value: value inherited through field fallback
  • Inherit value: value inherited from original item (cloning)
  • Default value: (thanks Klaus) this will be the value in the "default value" field of the field's item, which you find in the tree underneath your template item enter image description here

ps: field.Value will call this function will all parameters true.

| improve this answer | |
  • 4
    For the default value - on the template field, you can find a default value field - this will be the Default Value – Klaus Petersen Oct 4 '16 at 19:29
  • Great Answer Gato, don't forget to update your answer with the information from Klaus. As an aside, I would also think about adding a screen shot of oh where that default value is located. Just a thought. =) – Pete Navarra Oct 28 '16 at 3:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.