You need to wrap the tiddler name with double braces, since the tags field 
is a list field.  Since [[ and ]] have special meaning in filters, they 
have to be added sidewise, using variables. In my example below, you'll 
need to revert HelloThere back to your original tag:

<$vars lb="[[" rb="]]">
<$list filter="[tag[HelloThere]sort[title]]">
<$link to={{!!title}}>__''<$view field="title"/>''__</$link> <$button>
<$action-sendmessage $message="tm-new-tiddler" title="New Task" 
tags={{{ [<currentTiddler>addprefix<lb>addsuffix<rb>] }}} 
/>New Task</$button><br>
<$list filter="[is[current]tagging[]sort[title]]">
<$checkbox tag="done"> <$link to={{!!title}}>''<$view 
field="title"/>''</$link></$checkbox><br>
</$list>
</$list>
</$vars>

On Friday, February 12, 2021 at 9:03:01 AM UTC-8 JM wrote:

>
> Hi there,
>
> I hope the title gives an idea of my problem:
>
> I'm working on my own To-Do-TiddlyWiki and I have build a list where the 
> tasks are listed by projects. That works out well. Now I want to have a 
> button added behind the project-title that adds a tiddler tagged with the 
> specific title:
>
> <$list filter="[tag[project]sort[title]]">
> <$link to={{!!title}}>__''<$view field="title"/>''__</$link> <$button>
> <$action-sendmessage $message="tm-new-tiddler" title="New Task" 
> tags=<currentTiddler> />New Task</$button><br>
> <$list filter="[is[current]tagging[]sort[title]]">
> <$checkbox tag="done"> <$link to={{!!title}}>''<$view 
> field="title"/>''</$link></$checkbox><br>
> </$list>
> </$list>
>
> This works out well, except for a project-title consisting of multiple 
> words, because two words will be treated as two different tags.
>
> Can anyone give me a hint?
>
> Thx
> Jens
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/695203e7-1526-4f42-9f71-a526f798fdc5n%40googlegroups.com.

Reply via email to