Jump to content

Making a reference to the search criteria in search results


Matthew Bayliss

Recommended Posts

I wasn't sure if this was more appropriate for the geomaps forum or modules, so if it belongs elsewhere feel free to move it!

 

Is there any way to make references to the values given by the user in their search? For example: if you have a field for "post code" in the search can you make a reference to whatever they typed in? It exists in the URL so I'm assuming so, but not 100% how to do it.

 

The aim result would be text in the listing file that says:

"Your search for kittens within 10 miles of SW9 3KL gave 10 results"

 

populated from

"Your search for {jr_searchitem} within {jr_distance} of {jr_post-code}..."

 

(assuming the search module contains all of these things)

 

It's primarily for SEO benefits but there are also a couple of conditionals that I want to throw in with definitions/alerts.

:)

 

Link to comment
×
×
  • Create New...