Adding a "Search this Category" box...
- GrfxDan
- Lieutenant Commander (LCDR)
- Posts: 82
- Joined: Sat May 26, 2007 10:58 am
- Location: Mt Zion, IL
- Contact:
Adding a "Search this Category" box...
Can anyone tell me if there's an easy way to add a "Search this Category" search box to the sidebar of category pages? (That would, obviously, only search the category being displayed)
I'm aware of CategorySearch.ascx which allows users to filter results by categories, manufacturers and keywords, but this is not what I want. I want something much simpler: just a search box that will search the current category.
I tried copying the CategorySearch.ascx and just hiding all of the extra functionality but it didn't work; the hidden sections wouldn't fully collapse, leaving a lot of extra whitespace in the sidebar, and the search box ceased to function and would just disappear when you attempted to use it. Is there an easier way to accomplish this?
I'm aware of CategorySearch.ascx which allows users to filter results by categories, manufacturers and keywords, but this is not what I want. I want something much simpler: just a search box that will search the current category.
I tried copying the CategorySearch.ascx and just hiding all of the extra functionality but it didn't work; the hidden sections wouldn't fully collapse, leaving a lot of extra whitespace in the sidebar, and the search box ceased to function and would just disappear when you attempted to use it. Is there an easier way to accomplish this?
Re: Adding a "Search this Category" box...
You need to create some custom conlib control to do this. For reference you can see narrowing controls from ConLib.
- GrfxDan
- Lieutenant Commander (LCDR)
- Posts: 82
- Joined: Sat May 26, 2007 10:58 am
- Location: Mt Zion, IL
- Contact:
Re: Adding a "Search this Category" box...
Forgive my ignorance, I'm not sure what you mean by this. Can you explain?mazhar wrote:For reference you can see narrowing controls from ConLib.
Re: Adding a "Search this Category" box...
I mean use some category related conlib control for reference while developing your custom control. For example you can check ConLib/CategorySearchSidbar control's code.
- GrfxDan
- Lieutenant Commander (LCDR)
- Posts: 82
- Joined: Sat May 26, 2007 10:58 am
- Location: Mt Zion, IL
- Contact:
Re: Adding a "Search this Category" box...
Thanks for the reply. That's actually what I already tried doing. My knowledge of .NET isn't very good and I wasn't able to hide/remove the extra search filters successfully, thus why I came here looking for help.
- hassonmike
- Lieutenant (LT)
- Posts: 76
- Joined: Tue Apr 19, 2011 2:13 pm
- Contact:
Re: Adding a "Search this Category" box...
Was there ever any success with this? If so, please provide solution! Thanks!
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Adding a "Search this Category" box...
You can take the category dropdown list from the advanced search page as an example. Then on postback for the selected category, you can pass something like Search.aspx?c=3 , where 3 would be the category. The search.aspx does look for c in the querystring.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx