+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom page fields

Custom page fields

2 posts, 0 answered
  1. Tom
    Tom avatar
    2 posts
    Registered:
    24 Feb 2016
    18 Nov
    Link to this post

    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

  2. Tom
    Tom avatar
    2 posts
    Registered:
    24 Feb 2016
    23 Nov
    Link to this post
    Anyone??
2 posts, 0 answered