PaulH
1
As far as I can tell I’ve followed an example in https://tiddlywiki.com/#ActionListopsWidget exactly and I’m getting a different result.
‘’’
<$button>
<$action-listops $field=“meds” $subfilter="[[Benadryl]]"/>
Benadryl
</$button>
‘’’
I’m loosing the double square brackets around “Benadryl” when it’s entered into the field “meds” and I don’t know why. Please advise.
Mark_S
2
Action-listops is for creating and manipulating lists. In lists, a single word doesn’t need double square brackets, so they get stripped off.
If you just want to change a field, use the action-setfield widget.
PaulH
3
First off, I need the brackets because I need it to be linked.
Second, I’m using action-listops become I’m adding to the field and not changing the complete value as action-setfield widget does.
When you get the titles from the list that is when you decide if it is a link;
A Quick example is
list field containing a [[a b]] c then in tiddler {{{ [all[current]list[]] }}}
- This happens because more of the time we are treating things as titles, so even “a” gets treated as a title.
- More often than not I find I need to do the Opposite
<$text text="{{!!list}}">
Or
<$list filter="[list[]]">
<$text text=<<currentTiddler>>/><br>
</$list>
pmario
5
If you need a link, make it a link when you create the output. eg:
<$list filter="a [[with spaces]] b">
<$link to=<<currentTiddler>> /><br>
</$list>