Thanks.

Il giorno domenica 7 marzo 2021 alle 20:27:43 UTC+1 Eric Shulman ha scritto:

> On Sunday, March 7, 2021 at 9:22:01 AM UTC-8 staltari...@gmail.com wrote:
>
>> <$set name="myVariable" value={{{ [{!!title}addprefix[Gifts.]] }}}>
>> <$list filter="[tag<myVariable>tag[Gifts.Core]]">
>> <$link to=<<currentTiddler>>><$view field=title/></$link>,&nbsp;</$list>
>> </$set>
>>
>
> The technique you used is needed because you need to construct the tag 
> value before you use it as a parameter to the tag[...] filter.
>
> However, your code can be written more compactly, like this:
> <$vars myVariable={{{ [{!!title}addprefix[Gifts.]] }}}>
> <$list filter="[tag<myVariable>tag[Gifts.Core]]"><$link />,&nbsp;</$list>
> </$vars>
>
> * use $vars instead of $set
> * use $link with the default values for to="..." and the display of the 
> title text
>
> enjoy,
> -e
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/72444530-5ada-49c8-9f9e-16bfb2ec689fn%40googlegroups.com.

Reply via email to