SPM and default filters
Posted: 2018-10-08 17:26
Hi everyone
Just installed the Search Page Maker .. but ran into troubles with my default filters. The following default filters works just fine without the SPM:
.. but when using the SPM (by enabling the $options->FilterPage = 'hooks/Packages_filter.php'; line) the columnnumbers (15 and 14) hits wrong columns, and the not-equal-to comparison operator is changed to like.
How should I alter my default filter (and sorting) to work with SPM?
Just installed the Search Page Maker .. but ran into troubles with my default filters. The following default filters works just fine without the SPM:
Code: Select all
$options->DefaultSortField = '7 asc, 12 asc';
$options->DefaultSortDirection = '';
if(!$_POST['FilterField'][1] && !$_GET['FilterField'][1]){
addFilter(1, 'and', 15, 'equal-to', 'No');
addFilter(2, 'and', 14, 'not-equal-to', 'UAT');
addFilter(3, 'and', 14, 'not-equal-to', 'Completed');
}
How should I alter my default filter (and sorting) to work with SPM?