Hi! I need to filter a pagedatacollection from pages that have a show/not show propterty set to null. I found FilterRemoveNullValues that sounded like a perfect function, but it doesn´t work for me. Can someone help me with some examplecode? Thanx /Helena
Mar 25, 2008 18:36
You should be able to do like this: EPiServer.Filters.FilterRemoveNullValues filter = new EPiServer.Filters.FilterRemoveNullValues("PropertyName"); EPiServer.Core.PageDataCollection pdc = GetChildren(Global.EPConfig.StartPage ); filter.Filter(null, new EPiServer.Filters.FilterEventArgs(pdc)); The filter will remove the pages where the "PropertyName"-value is null. /Øyvind
Mar 25, 2008 18:47
* 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.