adrianmak Posted December 24, 2015 Posted December 24, 2015 I have a page root which will not be shown on navigation menu (auto-generated) Page settings provide this option to hide from lists. but it both hide from search How could I make hidden page still searchable ?
pwired Posted December 24, 2015 Posted December 24, 2015 Did you try Unpublised instead of Hidden ? Or exclude it from the auto generated with your own children for each loop.
kongondo Posted December 24, 2015 Posted December 24, 2015 (edited) 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 December 24, 2015 by kongondo 4
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now