Thank you all for your advice!

So based on what you guys have said I botched together a button template to 
go on each project tiddler that adds a new task with the title 
<Project>/<NewTask> 
and the caption <NewTask>.

I want to add to my task tiddler a tag with the name of the project 
(<<currentTiddler>>) and the tag "task". I then realised that if the 
project title has spaces then each word is treated as a separate tag. How 
do I add it as a single tag if it includes spaces?

Here is my template:

\define concatenate() {{!!title}}/{{$:/state/new-button-caption}}
\define set-tags() {{!!title}} task

<$edit-text tiddler="$:/state/new-button-caption" tag="input" default=""/>
<$button>
<$wikify name="newtitle" text=<<concatenate>>>
 <$wikify name="newtags" text=<<set-tags>>>
<$action-createtiddler $basetitle=<<newtitle>> tags=<<newtags>> caption={{$:
/state/new-button-caption}}/>
Add task
</$wikify>
</$wikify>
</$button>

!!ToDo
<<list-tagged-draggable tag:"task" 
subFilter:"!has[draft.of]!tag[done]tag{!!title}" 
itemTemplate:"TaskManagementExampleDraggableTemplate" emptyMessage:"You 
don't have any active tasks">>
!!Done
<$list filter="[!has[draft.of]tag[task]tag[done]tag{!!title}sort[created]]">
<div>
<$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="caption"/></
$link>~~</$checkbox>
</div>
</$list>



-- 
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 post to this group, send email to [email protected].
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/015e3a90-d01b-49f6-a7bc-4d4abb9bf88b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to