PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Include category in submit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Include category in submit

    I'm using Zoom 4 Pro and have several categories for users to choose from. I have it indexing my entire site and want to allow users to search within a sub-site without having to select the category while in that sub-site.

    An example would be say, the site is http://www.mysite.com and there is a category for 'sub1' which is a sub-site within mysite.com. When the user is anywhere on mysite.com they can choose to search sub1 by selecting it as a category but, when they are in mysite.com/sub1/ and they want to search within that sub-site is there a way to have the query string search sub1 by default rather than the user having to select it from the categories?

    Maybe something like <form action=/search/search.php?zoom_cat=2 method=get>

    I've tried this but it dumps the '?zoom_cat=2' and submits the query string without the category.

  • #2
    I think the solution might be to have a hidden HTML form field that selects the category that you want.
    <input type="hidden" name="zoom_cat" value="2" />

    Comment


    • #3
      That was it. Thank you.

      Comment

      Working...
      X