Try our conversational search powered by Generative AI!

EditorDescriptor table showing content reference id instead of name


Hi Team,

I am using EditorDescriptor attibute as below in one of Page Type.

[EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<Facilities>))]
public virtual IList<Facilities> Facilities { get; set; }

public class Facilities
public virtual ContentReference Facility { get; set; }

public virtual bool IsDefault { get; set; }

But in CMS edit, users can see content reference id insted of name. Please refer below screenshot reference.

I have tried below link but that approach has some issues. It was not working some times and also facing issues with table grid add/remove if i follow below link changes.

Is there any out-of-box helpers method to show page type name property? Or Can anyone please suggest to acheive this.


Suresh B

Dec 10, 2020 12:00

I guess this addon from Jake Jones will do what you ask: which is based on Grzegorz Wiecheć solution

Dec 10, 2020 22:16

The default CollectionEditor widget basically does a ToString() on each item property without any specific formatters. That's why a complex property is displayed as [Object] by default.

ToString() on a ContentReference results in the ID rather then the name of the associated content.

Dec 17, 2020 18:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.