Creating a simple checklist with checkboxes inside a tiddler

1,078 views
Skip to first unread message

Shash

unread,
Apr 22, 2015, 7:19:45 AM4/22/15
to tiddl...@googlegroups.com
Hi all,

Instead of a numbered list, I just want to create a simple checklist with check boxes inside a tiddler. However I do not want to create multiple tiddlers with a tag and list it inside a particular tiddler. Also after clicking inside the checkbox I want the content to strike out. 

Is there a simple way to achieve this.

Thanks!
Shash

c pa

unread,
Apr 22, 2015, 11:52:56 AM4/22/15
to tiddl...@googlegroups.com
Shash,

I've achieved this using the following: It creates a tiddler that holds tags for your checklist items.

Create a tiddler called "checklist" with the following content

\define checklist()
 <$checkbox tiddler="$:/_cpa/Data/todos" tag="todo:$(currentTiddler)$">
        <$link to="$(currentTiddler)$" tooltip="Create new detailed task">
            $(currentTiddler)$
         </$link>
    </$checkbox>
\end
<$macrocall $name="checklist" />

I have a much more functional version called "tasks" that stores the items text; allows you to take notes on your checklist items; allows you to list the items separately here:

http://cpashow.tiddlyspot.com/#task
http://cpashow.tiddlyspot.com/#todos
And showing the data store:
http://cpashow.tiddlyspot.com/#%24%3A%2F_cpa%2FData%2Ftodos

Freddy Grün

unread,
May 22, 2015, 5:03:38 PM5/22/15
to tiddl...@googlegroups.com
Hei Shash,

did you ever get this to work? I'm looking for exactly the same thing but can't fully grasp how c_pa's answer works.

Once I've created the checklist tiddler, how to I start the todo list?

Cheers!

c pa

unread,
May 27, 2015, 10:35:31 PM5/27/15
to tiddl...@googlegroups.com
Hey guys sorry forgot to include the rest of the instructions

Once you've created your tiddler named "checklist" with the above mentioned code, Then in any other tiddler you can type the following and get your checklist items

* {{This is a test||checklist}}
* {{This is another test||checklist}}

With this method you should be able to list all of your completed items using this code: (untested)

<$list filter=""[[$:/_cpa/Data/todos]tags[]]">

</$list>

Spangenhelm

unread,
Jun 18, 2015, 6:37:23 AM6/18/15
to tiddl...@googlegroups.com
Hi, sorry for responding late! i do not understand something: what would you like to list ? a simple checklist ? If you do not want to use multiple tiddlers for that then i guess you would need some javascript because in tw everything is a tiddler..

Cheers!
Reply all
Reply to author
Forward
0 new messages