예제 #1
0
        private IEnumerable <TemplatedBasePageType> GetFilteredChildPages(PageReference pageReference)
        {
            IEnumerable <TemplatedBasePageType> childPages = this._contentRepository.GetChildren <TemplatedBasePageType>(pageReference);

            PageDataCollection collection = new PageDataCollection(childPages);

            foreach (IPageFilter filter in this._navigationPageFilters)
            {
                filter.Filter(collection);
            }

            return(collection.OfType <TemplatedBasePageType>());
        }