Make two tiddlers. The Task List Tiddler, called whatever you want it to
be, and the child tasks template called 'childTasks' with the following
code:
Task List tiddler:
<ul>
<$list filter='[tag[task]!has[parent]]'>
<$list filter='[is[current]!tag[done]]'>
<li>
<$checkbox tiddler=<<currentTiddler>> tag=done><$view
field='description'><$view field='title'/></$view></$checkbox><br>
{{||childTasks}}
</li>
</$list>
<$list filter='[is[current]tag[done]]'>
<li>
<$checkbox tiddler=<<currentTiddler>> tag=done>~~<$view
field='description'><$view field='title'/></$view>~~</$checkbox><br>
{{||childTasks}}
</li>
</$list>
</$list>
</ul>
Child tasks template:
<ul>
<$list filter='[tag[task]parent{!!title}]'>
<$list filter='[is[current]!tag[done]]'>
<li>
<$checkbox tiddler=<<currentTiddler>> tag=done><$view
field='description'><$view field='title'/></$view></$checkbox><br>
{{||childTasks}}
</li>
</$list>
<$list filter='[is[current]tag[done]]'>
<li>
<$checkbox tiddler=<<currentTiddler>> tag=done>~~<$view
field='description'><$view field='title'/></$view>~~</$checkbox><br>
{{||childTasks}}
</li>
</$list>
</$list>
</ul>
Then if a tiddler is tagged with `Task` and doesn't have a parent field it
will be listed as a root task, if a tiddler has the tag Task and a parent
field it will be listed as a sub-entry of the parent task.
--
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/925d6eb1-a31c-4f15-90ff-a8c9aff18b00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.