2015-10-23, 20:01:58
(2015-10-23, 03:37:22)Alexander_ Wrote: Hi there,
ist there a way to do a search on more than one fields? E. g. search for specialfield_1 = x and specialfield_2 = y.
Alex
From the docs:
Quote:Parameters for the search results:
- tags: Tags (key words) to search for (instead of the submitted tags), separated by blanks. If you have a multi-word tag, replace its blanks with _
Eg, on your page:
Code:
(% searchresults tags=specialfield_1 specialfield_2 %)
In PHP (untested, might need to specify an array for the
tags
param): PHP Code:
<?php
$params = array('tags' => 'specialfield_1 specialfield_2');
get_i18n_search_results($params); ?>