Guest User

low_search custom field searchf

a guest
Nov 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.60 KB | None | 0 0
  1.     {exp:low_search:form required="keywords" collection="my_collection" query="{segment_x}" result_page="search/results"}
  2.         <input type="text" name="keywords">
  3.         <input type="text" name="search:custom_field:colx">
  4.         <select name="category[]">
  5.             <option value="">Everywhere</option>
  6.             {exp:channel:categories category_group="1" style="linear"}
  7.             <option value="{category_id}"{if low_search_category ~ '/\b'.category_id.'\b/'} selected{/if}>
  8.                 {category_name}
  9.             </option>
  10.             {/exp:channel:categories}
  11.         </select>
  12.         <button type="submit" class="btn btn-primary mb-2">Search</button>
  13.     {/exp:low_search:form}
Add Comment
Please, Sign In to add comment