Custom page fields

Posted by Community Admin on 04-Aug-2018 14:06

Custom page fields

All Replies

Posted by Community Admin on 18-Nov-2016 00:00

I am building a custom navigation MVC widget in which I'm trying to filter on a custom field that I've added to the pages.  Below is how I'm  selecting the pages to be included in the custom nav, but how do I add a filter for the custom field?

var pageManager = PageManager.GetManager();       

var pages = pageManager.GetPageNodes().Where(n => n.ShowInNavigation == true && n.ApprovalWorkflowState == "Published" );

 

edit: This is for version 9.2

Posted by Community Admin on 23-Nov-2016 00:00

Anyone??

This thread is closed