Register Log In

Search All for only categories
Code for Search all for categories only

Comments on Search All for only categories


Usergroup: Member
Joined: Jul 12, 2016

Total Topics: 2
Total Comments: 2
Search All for only categories
Posted Jul 12, 2016 - 1:33 pm:

Hello can someone paste the code for search all so that it showes only categories titels in the search bar?

And please explain how to make this work?

Thank you!

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7866
Posted Jul 12, 2016 - 3:48 pm:
Doesn't that mean you only want to search categories, not search all? To do a simple search of just categories, use
<div class="box panel panel-default">
<div class="boxtitle panel-heading" onclick="wsn_minmax('quickbox')"><h3 class="panel-title">{LANG_SEARCH_QUICKSEARCH}</h3></div>
<div id="quickbox" class="boxbody panel-body">
<form action="search.php" method="GET">
<input type="hidden" name="condition" value="{DEFAULTSEARCHTYPE}">
<input type="hidden" name="filled" value="1">
<input type="search" name="search" class="standardinput" />
{LANG_GENERAL_WITHIN} <input type="text" name="zipmiles" size="3" /> {LANG_SEARCH_POSTALRANGE} <input type="text" name="zipsource" size="30" />
<input type="hidden" name="whichtype" value="categories">
<button type="submit" class="gobutton btn btn-default btn-sm">{LANG_MAIN_SEARCH}</button>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5

Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.