Try our conversational search powered by Generative AI!

Set object name in EPiServer for Explore tab



How can I change object name in 'Explorer' tab?

Id for object was changed:

                .IdIs(p => p.Id);


public class BusinessListItem    {       

        public int Id { get; set; }
        public string Heading { get; set; }


Nov 09, 2015 12:09

The easiest way to do this is probably to add a property named "SearchType" or "Name" which returns the heading property.

Check out this thread for more information:

Nov 09, 2015 14:43

'Name' propeprty can be used for those purposes.


Nov 09, 2015 15:06

Hi Per Magne Skuseth ,

I can't include additional property ('Name') to object in some situation (e.g. external type wasn't available to modification).

Is it possibile somehow use IncludeField functionality to add new property with name 'Name' and value from other property ('Heading')?

public class BusinessListItem    {
        public int Id { get; set; }
        public string Heading { get; set; }
Nov 11, 2015 13:58


Yes. Create a new extensions method for you object type (BusinessListItem) called "Name", and then create an initializable module where you specifiy that the field should be included.


        public static string Name(this Product p)
            return p.Heading;
            // put in an initializable module
            SearchClient.Instance.Conventions.ForInstancesOf<Product>().IncludeField(x => x.Name());
Nov 12, 2015 7:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.