Todo list that

451 views
Skip to first unread message

spen...@gmail.com

unread,
Jun 4, 2014, 12:31:34 PM6/4/14
to tiddl...@googlegroups.com

Hi - I'm in the process of trying to get my Tiddlywiki Classic into the latest version.

The checkboxes are throwing me a little bit - On the classic version I had a Checkbox plugin that allowed me to just write '[ ]' and then a checkbox appeared.

I can't do that on the new one, and also I can't just write '<$checkbox>' either, because when I click it, it throws an error.

So, I can see two ways out of this - 

1) is there a similar checkbox plugin for the latest and greatest version on tiddlywiki?

2) using the #TaskManagementExample in the new tiddlywiki documentation - is it possible to add the current tiddly title as a tag upon clicking the checkbox? Something like the following? So that you are able to have checklists in several different tiddlys?


<$list filter="[!has[draft.of]tag[task]tag[<view field="title">]!tag[done]sort[created]]">

<$checkbox tag="done,<view field = "title">"> <$link to={{!!title}}><$view field="title"/></$link></$checkbox>

</$list>

! Completed tasks

<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]">

<$checkbox tag="done"> ~~<$link to={{!!title}}><$view field="title"/></$link>~~</$checkbox>

</$list>

Stephan Hradek

unread,
Jun 4, 2014, 3:43:18 PM6/4/14
to tiddl...@googlegroups.com

spen...@gmail.com

unread,
Jun 4, 2014, 5:36:45 PM6/4/14
to tiddl...@googlegroups.com
Yes I mentioned it in my parent post and pasted the code verbatim. 

What i'd like to be able to do in the absence of just being able to place a checkbox (which throws an error) is to go one further than the example - so that the filter will get all tiddlers that have the tags "task" and the tag "CurrentTiddlyName".

So in that example, if I put the filter as:
<$list filter="[!has[draft.of]tag[task]tag[TaskManagementExample]!tag[done]sort[created]]">


Then we're good, but I won't be able to copy and paste that over to another Tiddly without editing it, so I want to do this but I'm not sure if I'm doing it correct - 

<$list filter="[!has[draft.of]tag[task]tag[<$view field="title"/>]!tag[done]sort[created]]">

...which embarrassingly has worked after I properly closed the <$view field="title"/> with a forward slash!

So, problem solved! 

It would still be nice to know if there's a way to just insert a checkbox into a tiddly that does nothing except remember if it's been ticked or not....

spen...@gmail.com

unread,
Jun 4, 2014, 6:53:30 PM6/4/14
to tiddl...@googlegroups.com
Sorry - that was incorrect and my testing was faulty - the line that I wanted was this

<$list filter="[is[current]tagging[]!tag[done]tag[task]]">


The answer was on here - was searching for the wrong terms, apologies.

Stephan Hradek

unread,
Jun 5, 2014, 1:36:26 AM6/5/14
to tiddl...@googlegroups.com


Am Mittwoch, 4. Juni 2014 23:36:45 UTC+2 schrieb spen...@gmail.com:
Yes I mentioned it in my parent post and pasted the code verbatim. 

Sorry… I think I should read better…
 
It would still be nice to know if there's a way to just insert a checkbox into a tiddly that does nothing except remember if it's been ticked or not....
The checkbox's state has to be stored somewhere. In the current implementation this "somewhere" is a tag. The tag need not be in the same tiddler. You could as well do this:

1. Create a tiddler calloed "cb"
<$checkbox tiddler="cb" tag={{!!title}}/> <$view field="title"/>

2. create checkboxes in other tiddlers like this:
{{My Checkbox Label 1||cb}}
{{My Checkbox Label 2||cb}}
{{My Checkbox Label 3||cb}}

The checkbox's states will be stored in "cb" with the given labels.




Pieter-Michiel Geuze

unread,
Jun 2, 2015, 8:20:48 PM6/2/15
to tiddl...@googlegroups.com
Thank you for that example.
Reply all
Reply to author
Forward
0 new messages