Try our conversational search powered by Generative AI!

Filter out a certain page from a PageList

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.
Oct 10, 2003 16:24
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:
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.