Using list of tiddlers to tag current tiddler

151 views
Skip to first unread message

Alfonso Pinto

unread,
Sep 29, 2016, 5:44:25 AM9/29/16
to TiddlyWiki
Hi,

I want to use TiddlyWiki to keep track of all my task for different projects.
I've one tiddler for each project. These tiddlers have the tag "project"

Now, I want to add a checkbox when creating a new task so I can select to which project or projects the task belongs to.

I've this:

|!Description |<$edit-text field="description" placeholder="Description"/> |
|!Due |<$edit-date icon="$:/plugins/kixam/datepicker/icon" tag=div field="due" fieldFormat="YYYY-MM-DD" firstDay="1"/><$view field="due"/>|
|!Priority |<$edit-text field="priority" placeholder="priority" tag="input" type="text"/> |
|!Project |<$list filter="[!has[draft.of]tag[project]]"><$checkbox tag={{!!title}}> {{!!title}}</$checkbox><br/></$list>|

The issue is that when I press the checkbox, the tag is added to the project tiddler instead of the new task tiddler I'm creating.
I guess this is because $list sets currentTiddler to the tiddler being iterated by the list at that moment.

I'm out of ideas on how to reference the tiddler that is holding the list instead the one being iterated.

Thanks in advance.
Regars,
Alfonso

PMario

unread,
Sep 29, 2016, 1:56:19 PM9/29/16
to TiddlyWiki

Mark S.

unread,
Sep 29, 2016, 2:09:19 PM9/29/16
to TiddlyWiki
Are you trying to change an existing tiddler, or make a new tiddler? If you want to make a new tiddler, then you're going to need a button (not a checkbox) and either tm- messages or action widgets to create a new tiddler. You're also going to need a mechanism to create a new title name -- probably an <$edit... widget.

Mark

Tobias Beer

unread,
Sep 29, 2016, 3:48:20 PM9/29/16
to TiddlyWiki
Hi Alfonso,
 
|!Project |<$list filter="[!has[draft.of]tag[project]]"><$checkbox tag={{!!title}}> {{!!title}}</$checkbox><br/></$list>|

Try using the variable attribute...

<$list filter="[!has[draft.of]tag[project]]" variable="tag">
<$checkbox tag=<<tag>>>
<$text text=<<tag>>/>
</$checkbox><br/>
</$list>

Best wishes,

Tobias.

Alfonso Pinto

unread,
Oct 5, 2016, 5:49:00 AM10/5/16
to TiddlyWiki
Thanks all, the variable works like a charm

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/RG8ZGuzOyrw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/713fbe02-2b1a-4f71-b580-a426fa50262b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages