Ejemplo n.º 1
0
        protected override IList <ContentReference> LoadChildrenReferences(ContentReference contentLink, string languageID, out bool languageSpecific)
        {
            // If retrieving children for the entry point, we retrieve pages from the clone root
            contentLink = contentLink.CompareToIgnoreWorkID(EntryRoot) ? CloneRoot : contentLink;

            FilterSortOrder sortOrder;

            var children = ContentStore.LoadChildrenReferences(contentLink.ID, languageID, out sortOrder);

            languageSpecific = sortOrder == FilterSortOrder.Alphabetical;

            foreach (var contentReference in children.Where(contentReference => !contentReference.CompareToIgnoreWorkID(EntryRoot)))
            {
                contentReference.ProviderName = ProviderKey;
            }

            return(FilterByCategory(children));
        }