Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {!------------/Search Form/--------------}
- {exp:low_search:form query="{segment_2}" require_all="category" result_page="/dev/" form_id="sidebar-category-search" secure="no"}
- <fieldset>
- {exp:channel:categories channel="entries" category_group="6" show_empty="yes"}
- <label class="category-checkbox">
- <input type="checkbox" name="category[]" value="{category_id}" {if category_id IN ({low_search_category})}checked="checked"{/if}/>{category_name}</label>
- {/exp:channel:categories}
- <button type="submit">Search</button>
- </fieldset>
- {/exp:low_search:form}
- {!------------/SEARCH RESULTS/--------------}
- {exp:low_search:results query="{segment_2}" limit="9"}
- {if count == 1}
- {if '{low_search_category}' != ''}
- <p>Selected Categories:
- {exp:channel:categories show="{low_search_category}" channel="entries" style="linear" backspace="2"}{category_name}, {/exp:channel:categories}
- </p>
- {/if}
- <ul>
- {/if}
- <div>
- <li>{title}</li>
- </div>
- {if count == total_results}</ul>{/if}
- {if no_results}No search results{/if}
- {/exp:low_search:results}
Advertisement
Add Comment
Please, Sign In to add comment