Try our conversational search powered by Generative AI!

FindPagesWithCriteria returns outdated pages

Vote:
 

Hi.

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

#87617
Jun 18, 2014 10:54
Vote:
 

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

#87626
Jun 18, 2014 13:20
Vote:
 

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

#87627
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.