Search results question

This is an archive of old posting to the User Forum

Search results question

Postby Gary » Tue Nov 23, 2004 5:22 pm

I am working on the search templates to change the appearance of the search
results for our site. So far I have made some changess, but I am unable to
remove or move the URL link that appears under and in the middle of each
search result. I would like to either move it to the left side (which will
be under the clickable image that will replace the item name) or get rid of
it altogether.

Any ideas?

Thanks

Gary
www.freebears.com
Gary
 

Re: Search results question

Postby Jim » Tue Nov 23, 2004 6:37 pm

Gary,
Note that there are 3 different template involved with search. One for
the general search page layout, one for the way the product looks and
one for the way the link looks.
The code in the default search page layout template for displaying the
products and links is
[-- LOOP SEARCH --]
[-- IF SEARCHLINK --]
<tr>
<td></td>
<td align="left" valign="top">
<b>
[-- END_IF --]

[-- SEARCHRESULT --]

[-- IF SEARCHLINK --]
</b>
</td>
<td></td>
<td></td>
</tr>
[-- END_IF --]

[-- END_LOOP SEARCH--]

Note that the display location of the search link is defined in the
sections with the [-- IF SEARCHLINK --] around it. This code moves the
link to the second cell of a table (the first being the product name as
defined in the product template.)

There is really no reason why this can't be changed. In fact for a
project I worked on today I modified the default search page template
and had just
[-- LOOP SEARCH --]

[-- SEARCHRESULT --]

[-- END_LOOP SEARCH--]

The [-- SEARCHRESULT --] content is displayed by either the product
template for product information or the link page template for the
links. Since these templates are independent of the search page
template you can display what ever you want. In fact if you don't wnat
the link to appear at all, in your link template just have the begin and
end [-- DEFINE LINK_TO_PAGE --] section with nothing between the tags
and use the minimal [-- LOOP SEARCH --] section mentioned above.

Jim

Gary wrote:
I am working on the search templates to change the appearance of the search
results for our site. So far I have made some changess, but I am unable to
remove or move the URL link that appears under and in the middle of each
search result. I would like to either move it to the left side (which will
be under the clickable image that will replace the item name) or get rid of
it altogether.

Any ideas?

Thanks

Gary
www.freebears.com

Jim
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 13 guests

cron