Low Search Table for ExpressionEngine
This add-on allows you to filter entries by group calculations of Grid / Matrix columns, like lowest, highest, average, sum, and total rows with Low Search. For example, filter by entries that have a Grid field with x rows or more. This also allows you to order entries by that value. Requires Low Search 4.2+.
- Download and unzip;
- Copy the
low_search_tablefolder to your
- All set!
Once installed, you can use these parameters in this format:
field_name should correspond to the Grid / Matrix field.
column_name should be a valid column within that field.Valid calculations are:
min: lowest value;
max: highest value;
avg: average value;
sum: sum of all values;
count: total rows in field. Does not require a column name to be specified.
Values should be numeric and can be prepended with the following operators:
To retrieve the value associated with the entry, use a variable like this:
To order by a given value, use the parameter name, eg.
Get entries with a Grid field with exactly X rows
<select name="table:grid_field:count"> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select>
Get entries where the age column of a Matrix field doesn't exceed 50
<input name="table:matrix_field:age:max" value="<50">