Variable or macro between quotation marks

50 views
Skip to first unread message

Jolly Jumper

unread,
Sep 1, 2016, 4:19:49 AM9/1/16
to TiddlyWiki
Hello!

I'm new to TiddlyWiki and i couldn't manage to get the following example work.

<$select tiddler='$:/city-select'>
<option value="">All</option>
<$list filter="[tag[City]]">
<option value="tag[<
<currentTiddler>>]"><<currentTiddler>></option>
</$list>
</$select>

<$set name=filterAdd value={{$:/city-select}}>
<
<list-links filter:"[tag[Location]$(filterAdd)$]">>
</$set>

It seems to me that the main error is the line

<option value="tag[<<currentTiddler>>]"><<currentTiddler>></option>

Could somebody give me a hint?

Many thanks in advance!

Mat

unread,
Sep 1, 2016, 9:24:50 AM9/1/16
to TiddlyWiki
 
It seems to me that the main error is the line

<option value="tag[<<currentTiddler>>]"><<currentTiddler>></option>


Accepting your assumption that this is the only problem (I haven't triied your code) then the I must ask what you expect that "value" to be? You've already put a filter around the option values. I htink that the option value cannot be a filter as you have it there.

Further, and generally, a filter for "tiddlers tagged with the currenttiddler" would be syntaxed like so;

="[tag<currentTiddler>]">

Only single brackets inside the filter. Also when you use {{...}} in filters, i.e then {...}  


 <:-)
Reply all
Reply to author
Forward
0 new messages