Skip to content

Instantly share code, notes, and snippets.

@philcon93
Last active April 4, 2017 06:23
Show Gist options
  • Save philcon93/7425998f61147b489ef0d272337e3f4b to your computer and use it in GitHub Desktop.
Save philcon93/7425998f61147b489ef0d272337e3f4b to your computer and use it in GitHub Desktop.

Category Keyword Search

B@SE

When you want to do a keyword search and limit the results by the category your on.

<li class="list-group-item"><h4>Filter By Keyword</h4></li>
<li class="filter">
<form name="productsearch" method="get" action="[@CONFIG:HOME_URL@]">
<input type="hidden" name="cn" value="[%if [@form:cn@]%][@form:cn@][%else%][@id@][%/if%]">
<input type="hidden" name="rf" value="kwcn">
<div class="input-group">
<input name="kw" type="text" class="form-control search input-sm" value="[%nohtml%][%filter ID:'keywords'%][%/filter%][%/nohtml%]" placeholder="Search category..." />
<span class="input-group-btn">
<button type="submit" value="Search" class="btn btn-default btn-sm"><span class="fa fa-search"></span></button>
</span>
</div>
</form>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment