November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
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:
http://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2014/8/Custom-types-has-no-name-or-type-description-in-Explore-view/
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; } }
Hi,
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.
Example:
public static string Name(this Product p) { return p.Heading; }
// put in an initializable module SearchClient.Instance.Conventions.ForInstancesOf<Product>().IncludeField(x => x.Name());
Hi,
How can I change object name in 'Explorer' tab?
Id for object was changed:
Object: