Try our conversational search powered by Generative AI!

Filter out a certain page from a PageList

Vote:
 
I wonder how you can filter out a page from a PageList so that it will not be visible. I have a dynamic number of pages called Item.aspx and also a page called ItemProduct.aspx and I only want to display the pages that use the Item.aspx page and not the ItemProduct.aspx page.
#12002
Oct 10, 2003 16:24
Vote:
 
There are at least 2 solutions to this problem.. 1. Load and remove the pages your self, for example: PageDataCollection pages = GetChildren(somePageLink); //remove ItemProduct pages here pageList.PageLink = PageReference.EmptyReference; pageList.DataSource = pages; 2. Add a filter to a pageList, probably a better solution for code reuse but results in the same logic. More information about building custom or using EPiServer filters can be found at: http://www.episerver.com/templates/faq.aspx?id=3404
#13515
Oct 10, 2003 19:33
* 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.