Advertisement
Guest User

No results with only categories

a guest
Sep 28th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.53 KB | None | 0 0
  1. <!-- SEARCH RESULTS -->
  2.  
  3.         {exp:low_search:results
  4.             query='{freebie_3}'
  5.             channel='vacatures'
  6.             status='not closed'
  7.             require_all='category'
  8.             search_mode='all'
  9.             keywords:loose='both'
  10.             disable='category_fields|member_data|pagination'
  11.         }
  12.             {if no_results}
  13.                 {if low_search_keywords != "" || low_search_category != ""}
  14.                 <tr><td colspan="2"><div class="alert alert-info"><strong>Er zijn geen resultaten gevonden.</strong><br />Hieronder ziet u alle vacatures.</div></td></tr>
  15.                 {/if}
  16.  
  17.                 {exp:channel:entries
  18.                     channel='vacatures'
  19.                     orderby='vacature_top_vacature'
  20.                     sort='desc'
  21.                     dynamic='no'
  22.                     status='not closed'
  23.                 }
  24.                 <tr>
  25.                   <td class="title"><a href="/vacature/{url_title}" class="title{if vacature_top_vacature} top{/if}" title="Bekijk vacature {url_title}">{title} {vacature_top_vacature}</a><br>{vacature_kernwoorden}</td>
  26.                   <td align="right" width="150"><a href="/vacature/{url_title}" class="details">Bekijk nu <i class="fa fa-angle-right fa-2x"></i></a></td>
  27.                 </tr>
  28.                 {/exp:channel:entries}
  29.             {/if}
  30.  
  31.                 <tr>
  32.                   <td class="title"><a href="/vacature/{url_title}" class="title{if vacature_top_vacature} top{/if}" title="Bekijk vacature {url_title}">{title} {vacature_top_vacature}</a><br>{vacature_kernwoorden}</td>
  33.                   <td align="right" width="150"><a href="/vacature/{url_title}" class="details">Bekijk nu <i class="fa fa-angle-right fa-2x"></i></a></td>
  34.                 </tr>
  35.  
  36.         {/exp:low_search:results}
  37.  
  38.  
  39.  
  40.  
  41.  
  42. <!-- SEARCH FORM -->
  43. {exp:low_search:form
  44.             query='{freebie_3}'
  45.         }
  46.                 <div class="jobsearch">
  47.                     <h2><i class="fa fa-search"></i>&nbsp;&nbsp;Jobsearch</h2>
  48.                     <div class="form-group">
  49.                         <input type="search" name="keywords" id="keywords" placeholder="Vacatures / trefwoorden" value="{low_search_keywords}" />
  50.                     </div>
  51.                     <div class="form-group">
  52.                         <select name="category[]">
  53.                             <option value="">Alle Branches</option>
  54.                             {exp:channel:categories category_group="1" style="linear"}
  55.                                 <option value="{category_id}"{if low_search_category ~ '/\b'.category_id.'\b/'} selected{/if}>
  56.                                   {category_name}
  57.                               </option>
  58.                             {/exp:channel:categories}
  59.                         </select>
  60.                     </div>
  61.                     <div class="form-group">
  62.                         <select name="category[]">
  63.                             <option value="">Alle Provincies</option>
  64.                             {exp:channel:categories category_group="7" style="linear"}
  65.                                 <option value="{category_id}"{if low_search_category ~ '/\b'.category_id.'\b/'} selected{/if}>
  66.                                   {category_name}
  67.                               </option>
  68.                             {/exp:channel:categories}
  69.  
  70.                         </select>
  71.                     </div>
  72.                     <button class="btn btn-block btn-primary" type="submit">Zoeken</button>
  73.                 </div>
  74.         {/exp:low_search:form}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement