November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
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