You are here:  » Filter on search results

Support Forum



Filter on search results

Submitted by marco@flapper on Tue, 2011-02-01 13:31 in

Hi,
I read the thread on sidebarfilters (http://www.pricetapestry.com/node/3628).

My template allready has a sidebar. What I want to do is have the filters on the search result page. So if somebody searches they can filter the results.

But the filters shouldn't be in the sidebar but above the page in the content area right below the row with "Sort options" (see this page for example: {link saved)

Is that possible? What will be the impact on the server? I guess it will only be extra queries if somebody uses the filter?

Submitted by support on Wed, 2011-02-02 09:36

Hi Marco,

No reason why the filters (from the Sidebar Filters mod) can't go above search results rather than to the side! Pop me over your search.php and html/searchresults.php and I'll merge the code for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Wed, 2011-02-02 12:43

Thanks for the merged code.

Submitted by marco@flapper on Thu, 2011-02-03 16:13

Hi,
I tested it and noticed a few things.

a. The sidebar is pushed down. Probably because the filters are too long for the width of the content area. Maybe it's better to have them under each other? What do you think? Like:
Merchant
Category
Brand
By Price

b. The names of the filters aren't shown above the filter.

Example url:
{link saved}

Submitted by support on Thu, 2011-02-03 16:53

Hi Marco,

There was a mistake in the table HTML in the file I sent you which was breaking the layout. The labels weren't displayed because your styling has the text colour as white on white at that point - I have sent you a new version to try which fixes the table problem, and moves the filter labels into the drop-downs for the merchant / category / brand filters, and have added a span tag to set the text colour to black for the Price Range filter...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Fri, 2011-02-04 10:24

Hi,
I've send you a mail because I was looking for styling the "filter box" and to change the order/place of the "filter" and the "sort" function on the page.