Jump to content

how to make page searchable but still exclude from list ?


adrianmak
 Share

Recommended Posts

include=hidden in your search selector
 
http://processwire.com/api/selectors/#access_control


// results exclude hidden, unpublished or non-viewable pages
$pages->find("template=skyscraper");

// results may include hidden pages
$pages->find("template=skyscraper, include=hidden");

// results have no exclusions
$pages->find("template=skyscraper, include=all");

// results may include pages user can't view
$pages->find("template=skyscraper, check_access=0");

Edit: But why not just exclude your page from the menu using the API?

Edited by kongondo
  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...