[TW5] Using $list as "If, Then" controller causes duplication of inputs?

112 views
Skip to first unread message

Eduan Slabbert

unread,
May 5, 2017, 9:03:18 AM5/5/17
to TiddlyWiki
Good day,

I have been playing around with my own Task Management example for a while, and have managed to get some nice functionality going without using plugins.

I now however have an interesting situation that I can't seem to solve;

The ToDo and Completed tiddlers list tiddlers with the appropriate tags.

I have a TaskCheckbox tiddler that filters all current tiddlers with the tag "Task".
It then does a subfilter to see if it is tagged "ToDo" or "Completed" and displays a checkbox after the Title on the "Task" tiddler that is checked when "Completed", and unchecked when "ToDo". It also swaps the tags when the checkbox is toggled.

I then add a new task tiddler with the tags "Task" and "ToDo" and detail it as you would any tiddler.
Once it's saved you can toggle the checkbox to reflect the status.

Everything works perfectly, until I add a second task tiddler;

The moment the "ToDo"/"Completed" tag goes in, TaskCheckbox suddenly adds another checkbox and status.
The same when I add a third, fourth and so on.

My tiddlywiki is attached for inspection.

Anyone with any idea what is throwing it off? I purposefully use the same tags and tiddlers for Table of Contents and listing purposes and have thusfar been able to work around any issues that might cause.

Any input/feedback will be greatly appreciated!
TaskManagement.html

Mark S.

unread,
May 5, 2017, 10:00:52 AM5/5/17
to TiddlyWiki
There are two kinds of filter operators. Some filters require an input, but others can generate an output even if they have no input. The 'tag' is one of the latter types. You need to put 'is[current]' in front of each of the tag filter operators in your template, or it will generate the list of all tags that match from your entire tiddlywiki.

HTH
Mark

Eduan Slabbert

unread,
May 8, 2017, 1:57:44 AM5/8/17
to TiddlyWiki
Ah, wonderful!

I had the feeling it was going to be something incredibly simple, but after staring at the problem for too long, I wasn't able to spot it.

Thanks a million!

Arlen Beiler

unread,
May 8, 2017, 8:14:22 AM5/8/17
to TiddlyWiki
Wish there was a way to save this answer for future generations of TiddlyWikians? 

We have a proposal for a new Q&A site running the same software as StackOverflow.com that would cut down on the number of questions needing to be reanswered because the previous thread got lost in the shuffle.

Are you interested? You can follow the proposal at the link below, and then upvote 5 good questions about TiddlyWiki that have a score less than 10.


Enjoy!

--
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+unsubscribe@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/a089b3ac-f3ff-4b91-95b1-de2350faeb7e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages