[tw] Re: Using currentTiddler name in a filter

Hi Fidel,

the syntax is like

<$set name="myVariable" value=<<currentTiddler>>> <$list filter="[search<myVariable>]">
<$text text={{!!title}}/> </$list>
</$set> hope this helps BJ I see that your 'list' widgets do not have a closing '/' so it would be On Saturday, October 15, 2016 at 11:37:49 AM UTC+1, Fidel N wrote: > > Hi: > I have read and tried many solutions, most of them were reportedly > working, but I cant manage to make this work for me :( > > My current code is this one: > > Macro definition for testing: > > \define current_title() > Miscelaneous > \end > > > > Defining the variable value also for testing: > > <$set name="myVariable" value=<<currentTiddler>> >
> <$text text=<<myVariable>>/> > </$set>
>
>
> Test the variable, renders OK (currentTiddler title):
> <<myVariable>>
>
>
>
> And now, doesnt matter how I try, I cant manage to filter with the
> variable value:
> <$list filter="[tag{{!!myVariable}}]"> > <$list filter="[tag<myVariable>]">
> <$list filter="[tag<<myVariable>>]"> > <$list filter="[tag{!!myVariable}]">
>
>
> The only thing I managed to work is:
>
> <\$list filter="[tag<current_title>]">
>
>
> But for this I had to manually insert the tiddler name within the macro...
>
> What got me to ask here is that I can use the macro but no variable seems
> to work even though they render OK outside the list....
>
> What do you guys think is happening??
>
>

--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/2a733600-dca6-416f-9418-da7f95caf7c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.