November Happy Hour will be moved to Thursday December 5th.

Getting the page by passing it's content

Vote:
 

I've a class like

public class IndustryPage 
{

[CultureSpecific]
[Display(
Name = "Categories",
Description = "Categories",
GroupName = SystemTabNames.Content,
Order = 30)]
[AllowedTypes(typeof(CategoryPage))]
public virtual IList<ContentReference> Categories { get; set; }

}

Not i want to find industry pages by passing categories(contentrefernce) list.

Can someone help me in this?

#205502
Jul 15, 2019 11:42
Vote:
 

With or without Episerver Find?

#205512
Jul 15, 2019 12:34
Likhitha - Jul 15, 2019 13:12
With EPiserver FInd.(Currently i'm trying with Builderfilter but i'm struggling as i've to compare with list)
Vote:
 

This sounds very similar to this post I answered recently:

https://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2019/7/ignore-descendants-from-pages-with-bool-property-hideinsearch--true/

The answer I give in that thread sounds like exactly what you need. 

You will essentially match on any ancestor ID of a product that matches the category links you've configured via your property, above. 

Hope it helps!

Paul 

#205522
Jul 15, 2019 18:13
* 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.