Help - Search - Members - Calendar
Full Version: Is there an "all" option available for Searching..
Movable Type Community Forum > Additional Resources > Tips and Tricks
zeroseven
Hi,

I've just been tweakin a site for a client... and I came up with this as my Search field:

http://www.hopehardcore.com/

You'll notice I have a Dropmenu for more "advanced" searching... but because I have this, it automatically adds the "IncludeBlogs=" tag into the URL of the Search.cgi page.

What I want is an "ALL" option in my search bar, but it seems like there is no such available...

Can anyone help me with this, or let me know if there is a value meaning "all" available out there? smile.gif
zeroseven
bump sad.gif
kadyellebee
I don't know how your script for the drop down is coded, but I believe that if there isn't an IncludeBlogs tag, it should default to ALL. So can you make the drop down read "ALL" and have that output nothing for that line of the search code?

Kristine
zeroseven
Thanks for the reply smile.gif

It looks like this:

CODE
<form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
Search this site: 
                     <input name="search" class="form" id="search2" size="25">
                     <select name="IncludeBlogs" class="form">
                             <option value="3">News</option>
                             <option value="4">Reviews</option>
                             <option value="5">Interviews</option>
                           </select>
                           <input name="submit" type="submit" class="form2" value="SEARCH">
          </form>
zeroseven
help? sad.gif
girlie
As far as I know, there isn't an option meaning "all"; you'd either have to use no IncludeBlogs statement, or list every blog you wanted to include. Using an empty value returned errors in my test.
zeroseven
thanks wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.