[TW5] Using $list filter into $list filter, how?

62 views
Skip to first unread message

Siniy-Kit

unread,
Apr 12, 2015, 3:57:27 PM4/12/15
to tiddl...@googlegroups.com
I have several tiddlers with the tag $:/_vendor
first tiddler with the text [is[current]tagging[]tag[$:/Note]vendor[sony]]
second tiddler with the text [is[current]tagging[]tag[$:/Note]vendor[nikon]]
....
I combine by common tag $:/_vendor all texts in "allvendors" tiddler
<$list filter="[tag[$:/_vendor]]"> <$view field="text"/></$list>

then I try to use this combined line in "showvendors" tiddler
<div class= "tovar_center"> <$list filter={{allvendors}}> <span class="textboxwhite">
   {{||$:/_tile}}     </span></$list> </div> 

but it don't work it shows $list filter into $list filter, but not a combined line.

(I want to make checkboxs in my TW shop to select  goods by there fields value)

Jed Carty

unread,
Apr 12, 2015, 5:02:32 PM4/12/15
to tiddl...@googlegroups.com
This is getting into the parsing of tiddlywiki again. I don't have time to test things, but try something like this:

\define someMacroName()
<div class= "tovar_center"> <$list filter=$(AllVendors)$> <span class="textboxwhite">

   {{||$:/_tile}}     </span></$list> </div>
\end

<$set name=AllVendors value={{allvendors}}>

<<someMacroName>>

</$set>

which may work. Like I said, I don't have time to test right now. You may also need quotes around $(AllVendors)$, but I am not certain about that.

Siniy-Kit

unread,
Apr 13, 2015, 2:47:30 AM4/13/15
to tiddl...@googlegroups.com
unfortunately it gets the same result. it shows filter in filter as text.

понедельник, 13 апреля 2015 г., 0:02:32 UTC+3 пользователь Jed Carty написал:
Reply all
Reply to author
Forward
0 new messages