Hi, I'm retrieving a list of pages with the Page retriever and need to access a custom field on the page type of the pages. When I try to accessing it using
myTreeNode.GetBoolValue("ExcludeFromSiteMap", false);
It never returns the value. I know this was straight forward in <12 but are there additional steps I need to take to load the page data up so it can be accessed from a TreeNode? I have included the DocumentForeignKey in the list of columns the page retriever returns but that didn't help.
Any suggestions would be great!
Many thanks
Hi,
Could you please the full code on how you retrieve the pages?
Hi, Thank you for your interest in the question. I ended up switching from using the page retriever to using the TreeProvider to return a list that include the Pagetype values. Many thanks!
Please, sign in to be able to submit a new answer.