Custom search results page links
Posted: Thu Sep 20, 2012 1:38 pm
I am working on a custom search_product template to control how search results are displayed. I have made it so that both PRODUCT.Graphic and PRODUCT.Name link to PRODUCT.MoreInfoURL (and then made the search destination on the product pages "Store" instead of "MoreInfo" so that the product links do not appear in duplicate below each search result). So far, so good. The problem I've run into is that I have a handful of products that DO NOT have MoreInfo pages and instead have custom search destination links defined on their product pages. So on the search results page I need to make my product images and names link not specifically to the MoreInfoURLs, but to whatever I have defined as each product's search destination (which in most cases *is* the MoreInfo page, but in some cases will be a custom URL). Is there a tag that defines the product search destination link that I can put into my search_product template? I know that the search_link template normally defines this, but I'm trying not to use that - just want one link to show up, in the middle of the search_product definition. If that makes any sense at all...! Basically I'm looking for the existence of PRODUCT.SearchDestination. Help?