Advertisement
garabedium

low search category checkboxes

Dec 16th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. {!-- SEARCH FORM --}
  2. {exp:low_search:form query="{segment_3}" require_all="category" result_page="/static/dev" form_id="sidebar-category-search" secure="no"}
  3. <fieldset>
  4. {exp:channel:categories channel="stories" show_empty="yes"}
  5. <label class="category-checkbox">
  6. <input type="checkbox" name="category[]" value="{category_id}" {if category_id IN ({low_search_category})}checked="checked"{/if}/>{category_name}</label>
  7. {/exp:channel:categories}
  8. {!-- <button type="submit">Search</button> --}
  9. </fieldset>
  10. {/exp:low_search:form}
  11.  
  12.  
  13. {!-- SEARCH RESULTS --}
  14. {exp:low_search:results channel="static" limit="15" status="open|featured"}
  15.  
  16. <h3><a href="{url_title_path='static/'}">{title}</a></h3>
  17. {if low_search_no_results}No results be here.{/if}
  18.  
  19. {/exp:low_search:results}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement