Search Results

General ShopSite user discussion

Search Results

Postby nate-mws » Mon Aug 20, 2007 3:05 pm

i'd like to think i'm getting the hang of this...starting to know where to look when a result isn't what i had planned. but i cannot solve this issue.

in the Search Layout page, it allows you to set the Results Per Page. I get the desired number to display (it was originally set to 20 by my predecessor), but what i expected when i set the value to 5 was that i'd get 4 pages of results with 5 on each. is this not possible?

i have vendor and product pages now that return more than 20 results and shopsite created the necessary number of pages to display all of them, and puts navigational page numbers above the first result so that someone can see all the returns (i.e. all active speakers http://www.midweststereo.com/speakers_active.html).

is this a possibility in the search pages, or because they are dynamically created, am i stuck with whatever number i put in that box. my customers should be searching on more words that just "denon", for instance, but if they were to search on "active speaker" they'd get either a VERY long 50+ product long page, or only the first 20 results.
nate-mws
 
Posts: 14
Joined: Wed Jul 25, 2007 1:29 pm
Location: Location, Location

Postby Jim » Mon Aug 20, 2007 5:58 pm

Looking at one of the ShopSite provided search templates (tabbed_search.sst) there is a template tag [-- SEARCHRESULT_FORM --] that outputs the search form and the links to any continuation pages.

Since you are using a custom template and I don't see a ShopSite search form on your search results page I assume that your template does not contain this tag. Try putting it in and see if that fixes the problem. Here is the code that puts the field at the bottom of the tabbed search page

#Search form at bottom of page
[-- IF SEARCHBOTTOM --]
[-- SEARCHRESULT_FORM --]
</center>
[-- END_IF --]

The [-- IF SEARCHBOTTOM --] is checking the checkbox setting Preferences > Search Settings > Search Layout >Product Search Field: for the "Bottom" checkbox There is an equivalent SEARCHTOP to check the "Top" checkbox if you want the search form at the top of the page.

These tags are documented on http://www.shopsite.com/help/8.3/en-US/ ... earch.html

I don't see them in the custom template cheat sheet so I'll mention it to the documentation team.

There is currently no way to have just the navigational page numbers to additional search results pages (prev-Next kind of links) without having the entire search form displayed too. So there will be an additional search box included with the navigational page numbers.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby nate-mws » Wed Aug 22, 2007 11:28 am

that worked perfectly, jim. thanks. i'm even getting to the point where i know what template of the three search templates the code goes in!

slowly but surely...
nate-mws
 
Posts: 14
Joined: Wed Jul 25, 2007 1:29 pm
Location: Location, Location


Return to User Forum

Who is online

Users browsing this forum: No registered users and 74 guests

cron