Webmastersite.net
Register Log In

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

Comments on Search All for only categories

Gino
Beginner

Usergroup: Member
Joined: Jul 12, 2016

Total Topics: 2
Total Comments: 2
Gino
Posted 07/12/16 - 12:33 PM:
Subject: Search All for only categories
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!
Paul
developer

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

Total Topics: 61
Total Comments: 7845
Paul
Posted 07/12/16 - 2: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" />
<IF {SWITCH_ZIPRANGE}>
{LANG_GENERAL_WITHIN} <input type="text" name="zipmiles" size="3" /> {LANG_SEARCH_POSTALRANGE} <input type="text" name="zipsource" size="30" />
</IF>
<input type="hidden" name="whichtype" value="categories">
<button type="submit" class="gobutton btn btn-default btn-sm">{LANG_MAIN_SEARCH}</button>
</form>
</div>
</div>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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