Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-03 21:53:04

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

search results query

Hi
Hey – anyone know how to return search results without being triggered by a search form input?
For example, say the user enters an incorrect url and gets sent to an error/404 page.
I then want to search for the url phrase/term (<txp:page_url />, maybe cleaned up a bit with some PHP) and return results as part of the 404 page without (re)directing the user.

Any suggestions?

Cole


Jack of all trades, Doctor of one

Offline

#2 2007-12-04 22:02:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: search results query

You would need to create a plugin.

Alternatively, you could simply put a search form in your 404 page and allow users to do it manually.

Offline

Board footer

Powered by FluxBB