Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
private void Page_Load(object sender, System.EventArgs e)
{
MyPageTree.Filter +=
new FilterEventHandler(MyPageTree_Filter);
}
private void MyPageTree_Filter(
object sender, EPiServer.Filters.FilterEventArgs e)
{
PageDataCollection pdc = e.Pages;
for(int i=0; i< pdc.Count; i++)
{
if(pdc[i].PageTypeName.Equals("PageType to remove"))
{
pdc.RemoveAt(i);
i--;
}
}
}
There is a technical preview in the library called "Implementing Filters in EPiServer" for further reference.
/Marten