Blog Sections Open
Filtering DocLister Results by a TV Value with containsOne
A practical comparison of DocLister TV filtering and older Ditto-style localFilter patterns for category-like TV data.
DocLister made TV-based filtering much cleaner than many older Ditto setups, especially when the field stores category-like values and the goal is to match one current resource value against another.
The donor case compared a DocLister filter like this:
&filters=`tv:category:containsOne:[*category*]`
against a more manual Ditto pattern using localFilterDelimiter and custom filter logic.
Why containsOne is useful
- It is more expressive than hand-rolled delimiter logic.
- You can describe the filter in one line instead of maintaining custom filter code.
- It reads closer to the business rule: “show records whose category TV contains the current category value.”
For teams moving older Ditto filters toward cleaner DocLister-based listings, this is exactly the kind of small improvement that makes a codebase easier to maintain.
Installing DocLister and Related Extras Safely
A historical but still useful note on installing DocLister and related extras without breaking the manager during setup.
Changing Wayfinder startId Based on the Current Section with if
How to switch Wayfinder startId dynamically with the if snippet so menu output follows the current section context.