"Not"ing compare condition

Vote:
 
Hi Is there a way by which I can not the compare condition. e.g I want all the pages with PageTypeNames NOT startring with word "Area"? Cheers Vish
#12921
Mar 25, 2008 18:35
Vote:
 
You can do that filter yourselt in a few lines of code. public class Filter { public static void PagTypeFilter(object sender, EPiServer.Filters.FilterEventArgs e) { for(int i = 0; i < e.Pages.Count; i++) { if(!e.Pages[i].PageTypeName.StartsWith("Area")) continue; e.Pages.RemoveAt(i); i--; } } } /HAXEN
#15093
Mar 25, 2008 18:46
* 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.