As I need this button quite often - is it possible to store the code of the 
button in a tiddler and use it as a reference?

JM schrieb am Freitag, 12. Februar 2021 um 19:46:38 UTC+1:

> This works out well! Thank you!
>
> JM schrieb am Freitag, 12. Februar 2021 um 18:47:21 UTC+1:
>
>> 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/9c5d4fa3-deff-4466-9e2c-4d7001711d1cn%40googlegroups.com.

Reply via email to