London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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