Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
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