Hi everyone,
I'm currently using the SimpleSearch plugin on my GRAV CMS website to search and display results. However, I'm encountering an issue where the search results include links to non-routable pages, specifically those located in folders with names prefixed by an underscore (e.g., _hidden/page.md).
I would like to find a solution to exclude these non-routable pages from the search results. Ideally, I would prefer to avoid having to add code to each individual non-routable page.
simplesearch:
process: false
I found this information: /forum/archive/simplesearch-returns--module-pages-t3670 but something may change.
I think commenting out the line in the simplesearch.php file works:
//Add modular pages again
$this->collection->merge($modularPageCollection);
but I would also like to avoid such modification inside the file.
Has anyone faced a similar issue or have any suggestions on how to achieve this? Your help would be greatly appreciated!
Thank you in advance.