Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
try this
var pages = DataFactory.Instance.GetChildren(CurrentPage.PageLink, LanguageSelector.AutoDetect(true));
I find it odd but maybe there is a reason for this that in ordered to get unpublished pages, you have to pass in a language. This is right K Khan but you would think and overload for Publish status or booleaon for get children would accept the following. I have always been baffled by this but I am not the dev but have found it curious.
Thanks! Adding a languageselector to GetChildren() returns all the pages. Weird...
Hi! It seems that GetChildren() in IContentRepository only returns published pages. How do I get a list of all children, including the unpublished ones?
Regards Christer