PluginList with editable fields
PluginList can have a similar behavior to PluginTrackerFilter and PluginCustomSearch using the following:
So adding editable="y" to how you would normally use filtering in PluginList. Ex.:
{filter field="tracker_field_ABC" editable="y"}
Benefits
- Better performance than PluginTrackerFilter
- Easier to set up than PluginCustomSearch (no need to set up a tpl if you just need a simple filter)
New in Tiki 20: PluginTrackerList To PluginList Converter supports this. Ref:https://sourceforge.net/p/tikiwiki/code/71293/
Multiselect
You can also use
{filter field="tracker_field_ABC" editable="multiselect"}
Advanced Filtering (OR, AND, NOT)
If a filter field permits the selection of more than one option (using {editable="multiselect"}), the system will offer a way to construct a more advanced filter using logical operators (OR, AND, NOT).
While in most cases, picking a single value and filtering is sufficient, advanced use cases require more precise control.
The logical operator is controlled by the `operator` attribute within the filter definition:
| Operator | Description |
|---|---|
| AND | Requires the item to match all selected values. |
| OR | Requires the item to match any of the selected values. (Often the default for multiselect) |
| NOT | Excludes items that match the selected values. |
Usage Example
To enable multiselect for a field and set the default logical operator to AND (for example, on a Tracker Field named `TaskAssignedTo`):
{filter field="tracker_field_TaskAssignedTo" editable="multiselect" operator="AND"}
- AND: Requires the item to match all selected values.
* Example: Selecting "Alice" AND "Bob" for the Task Assigned To field would only show items where both Alice and Bob are listed as being assigned to the task (e.g., if the field supports multiple values per item).
- OR: Requires the item to match any of the selected values.
* Example: Selecting "Alice" OR "Bob" would show items assigned to Alice, Bob, or both.
- NOT: Excludes items that match the selected values.
* Example: Setting the operator to NOT and selecting "Alice" would show all items *except* those where Alice is assigned to the task.
This functionality allows for powerful combinations like:
- Alice AND Bob
- Alice OR Bob
- NOT Alice
- etc.
Tiki22
Added Math filter collection:
1. when mirroring a field - added its configuration - so mirroring an ItemLink will most probably add you a dropdown filter
2. when not mirroring a field - added 3 different types of filters - fulltext/initial/exact matches. You can use each of them like this:
{filter field="..." editable="y"} to use fulltext
{filter field="..." editable="initial"} to use initial match - e.g. matching 123 in 123USD
{filter field="..." editable="exact"} to use exact match - useful for searching identifiers or things that are not matched via fulltext - stopwords like Y/N yes/no, etc.
Added range filter to Numeric field. To use it:
{filter field="..." editable="range"}