3

I have a situation where I have a template and thus content items of that template whereby the field names seem to have problems in the content editor but not in visual studio.

Notice below that city and postal code both have 2 colons and postal code is not properly capitalised.

Content Editor

But Visual Studio seems to show these field names just fine, and everywhere I look, everything seems fine.

Visual Studio

As a note, there is no complex template inheritance happening. The template where this occurs is derived only from Standard template and the fields in question are Template fields.

Additionally, I can access the field values using their correct names. One example being item["Postal Code"], but the field name still displays incorrectly in the content editor.

I have already tried deleting the fields and then re-adding them, and the problem still persists. I also created brand new content items from the template after the changes, and the problem still persists.

I would and could delete the template and start over, but the template in question has a lot of fields and a lot of validation happening on each field, so I'd rather not restart.

Thoughts are appreciated.

  • Did you at some point have a : in the field name? Does this only happen for City and Postal code fields? What happens when you add a Random named field like Test or Testing? – ASura Oct 24 '16 at 17:46
  • 4
    Check the Title field on the field items, does that have anything in? – Richard Seal Oct 24 '16 at 17:48
  • @ASURA there may have been a : at some point, but I can't confirm it. When I add a new field called Testing Field, it displays with no issue. @Richard Seal , the Title field on the field item does not have anything in it. None of the other fields that are working fine have a value in that field either. It seems as though Sitecore is hung up or having problems with those specific field names in this case. Perhaps it's a bug as a result of renaming or reordering in the past? Thanks! – Marcel Oct 24 '16 at 17:55
  • Can you do the following in an incognito browser - Can you add a value in the title field save and then remove it and save. Also change the field name to City1 save and rename back to City and save? – ASura Oct 24 '16 at 17:56
  • In the incognito browser I performed the change to the field item title field as you recommended. The problem still persisted even after creating a new content item. Here is the interesting part. When I changed the name to City 1 and Postal Code 1, the field names displayed properly... But when I changed the field names back, they reverted back to their buggy state, as if there is some particular fixation on the exact field names "City" and "Postal Code" – Marcel Oct 24 '16 at 18:03
9

It sounds like you have a matching item in /sitecore/System/Dictionary/.

I did a quick test by adding a Dictionary item that matches the name of a field and the Content Editor picks it up.

enter image description here

enter image description here

| improve this answer | |
  • 1
    Wow, you're definitely right. I was able to find an exact dictionary item with a phrase that exactly matched the fudged field names. Thank you. We are currently working out a solution as we are not quite sure what to do with the dictionary item, why it's there, and so on. Will return back to this question as soon as possible. – Marcel Oct 25 '16 at 19:04
  • Great answer Jonas, nice find. @Marcel don't forget, if this answer solves your problem, be sure to select it as the correct answer. =) – Pete Navarra Oct 28 '16 at 4:06
  • As a side note, whenever you're deploying dictionary items upstream, Sitecore caches the dictionary items. Some versions of Sitecore require this cache to be cleared for the updates to come through. – Marcel Jun 8 '18 at 15:46

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.