Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {exp:low_search:form query="{segment_2}" result_page="/search/results" form_id="search" form_class="custom"}
- <label>Category 1</label>
- <select name="category[]">
- {exp:channel:categories channel="jobs" category_group="3" style="linear"}
- <option value="{category_id}"{if category_id IN ({low_search_category})} selected{/if}>
- {category_name}
- </option>
- {/exp:channel:categories}
- </select>
- <h3>Category 2</h3>
- <select name="category[]">
- <option value="">Search all categories</option>
- {exp:channel:categories channel="jobs" category_group="2" style="linear"}
- <option value="{category_id}"{if category_id IN ({low_search_category})} selected{/if}>
- {category_name}
- </option>
- {/exp:channel:categories}
- </select>
- <input type="hidden" name="require_all[]" value="category">
- <input class="button" type="submit" value="Search">
- {/exp:low_search:form}
- <ol class="posts">
- {exp:low_search:results channel="jobs" query="{segment_2}" limit="5" status="open|featured"}
- <li {if status == "Featured"}class="featured"{/if}>
- {if status == "Featured"}<span class="featured-badge">Featured</span>{/if}
- <a href="{path='jobs/{entry_id}/{url_title}'}">{title}</a>
- <span class="meta"><a href="{path='jobs/{entry_id}/{url_title}'}">{categories show_group="3" limit="1"}{category_name}{/categories}</a></span>
- </li>
- {exp:stash:set name="search_results_header" parse_tags="yes" parse_conditionals="yes"}
- <p class="lead"><span class="amount">{count}</span> job{if count > 1}s{/if} found for </p>
- <h1>
- {exp:gwcode_categories show="{low_search_category}" channel="jobs" style="linear" limit="2" show_empty="no"}
- {if cat_count == 2}<small>{/if} {cat_name} {if cat_count == 2}</small>{/if}
- {/exp:gwcode_categories}
- </h1>
- {/exp:stash:set}
- {/exp:low_search:results}
- </ol>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement