I have this solution, but I like a simple one:
\function inputFilter() [tag[someTag]]
\function .criteria()
[get[type]!match[application/json]!match[application/x-tiddler-dictionary]]
[!has[type]]
\end
<$list filter="[function[inputFilter]]:filter[.criteria[]]">
<$link/><br>
</$list>
You can simplify the .criteria function, like this:
\function .criteria() [!type[application/json]!type[application/x-tiddler-dictionary]]
-
!type[...] is the abbreviated form of !field:type[...], which tests to see if the value in the type field is NOT the specified value.
- This also avoids using
get[type], so you don’t need to include [!has[type]] to account for an empty type field.
enjoy,
-e
Thank you Eric! Thank you Emily!
Works like a charm.
Unless it has a side effect you can also test for [{!!type}!prefix[application/]]