Try our conversational search powered by Generative AI!

FindPagesWithCriteria returns outdated pages



I'm trying to use the FindPagesWithCriteria function. This returns outdated pages. Do I need to call FilterForVisitor.Filter() on the returned pages or should I add a criteria for this?

// Anders

Jun 18, 2014 10:54

Yup, you need to filter heavily what you get from FindPagesByCriteria. FilterForVisitor will take care of the most obvious problems like removing pages that isn't published or which current user lacks access to yes

Jun 18, 2014 13:20

If you use episerver controls to display lists of results, these list will do this filtering for you btw...

Jun 18, 2014 13:21
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.