Sorry, now I realized it, I'll give it a second try!

JM schrieb am Freitag, 12. Februar 2021 um 18:45:34 UTC+1:

> No, unfortunately that makes no difference.
>  tags={{{ [<currentTiddler>] }}} 
> will also split a title consisting of multiple words into multiple tags.
>
> Mark S. schrieb am Freitag, 12. Februar 2021 um 18:35:56 UTC+1:
>
>> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49269927-6cf2-4bb6-9e4a-f63e2ed9dc13n%40googlegroups.com.

Reply via email to