You are here:  » Ajax powered search

Ajax powered search

Submitted by apoc on Wed, 2016-01-13 21:56 in

Hi, all. I have url rewrite enabled on my script. I have implemented an ajax search feature but am unsure how to format the hyperlinks in the search results.

products.php?id=123 doesn't work. Can anyone tell me how to format the results so that it ties in with the rest of it?

TIA, Mark

Submitted by support on Thu, 2016-01-14 08:07

Hi Mark,

In your selection SQL make sure to include the normalised_name field, and then use:

tapestry_productHREF($product) get the product page URL, where $product is an array containing the product record.


Submitted by apoc on Thu, 2016-01-14 12:13

Thanks, David. I did work out a way to make it function using the product name and an untidy' ', '-') but I'll rewrite it after work to follow your suggestion.

Thanks again