Search code examples
sitecoresitecore6sitecore7

Sitecore adding field labels to name value list


I am trying to display field titles above the appropriate columns in a name value list in Sitecore.

e.g. So instead of this
enter image description here

The name value list would look like this
enter image description here

Is there an easy method of achieving this apart from writing a custom control?


Solution

  • There is no out of the box support for applying a label to the values in a name value list, as @jammykam mentioned.

    Since what you are storing would not typically be handled as key/value data, the name value list type might not be the best fit for what you are doing - think what you would have to do if you needed to add extra information e.g. title. I would suggest creating a simple template for 'person details' and then add 'people' items as sub-items of your existing item.