https://github.com/adrianbj/process404search
Processwire module for loading search results into 404 page using terms from the failed URL
https://github.com/adrianbj/process404search
notfound processwire search
Last synced: about 1 month ago
JSON representation
Processwire module for loading search results into 404 page using terms from the failed URL
- Host: GitHub
- URL: https://github.com/adrianbj/process404search
- Owner: adrianbj
- License: gpl-2.0
- Created: 2014-03-08T23:27:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-05T16:36:28.000Z (over 7 years ago)
- Last Synced: 2025-04-02T09:22:14.410Z (2 months ago)
- Topics: notfound, processwire, search
- Language: PHP
- Size: 23.4 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Process404Search
================Processwire module for loading search results into 404 page using terms from the failed URL
To make this module work, the only requirement is that you select your site's Search page in the module's config settings.
Optionally, you might like to add the following to your search.php file.
```
if(isset($options['q'])) $content .= $pages->get($config->http404PageID)->body;
```
This will add the content of your 404 page's body field to the top of the search results. You might like to populate that field with something like:```
The page you were looking for is not found.
We have tried to find the content you were looking for, but if we didn't get it right, please use our search engine or navigation above to find the page.
```#### Support forum:
http://processwire.com/talk/topic/5724-404-search-module/## License
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.(See included LICENSE file for full license text.)