コード例 #1
0
        public override IList <ContentReference> GetDescendentReferences(ContentReference contentLink)
        {
            // If retrieving children for the entry point, we retrieve pages from the clone root
            contentLink = contentLink.CompareToIgnoreWorkID(EntryRoot) ? CloneRoot : contentLink;

            var descendents = ContentStore.ListAll(contentLink);

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

            return(FilterByCategory(descendents));
        }