<$list filter="[!has[draft.of]tag[task]!tag[done]..."><$checkbox field="status" checked="open" unchecked="closed" default="closed">Is it open?</$checkbox>I have an idea. I'm trying to have the toc-expandable property to work with the filter list the task management currently works with. The problem is that I don't know how to do it, the list filter is a different than the toc expandable.
Anyone has an idea?
Sorry, I'm traveling so I can't edit this post well. Thanks!
<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><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>So ,now your questions:
!has[parent] in the filter means tiddlers that don't have a parent field
<<currentTiddler>> is a variable used by tiddlywiki, you can copy and paste exactly what I posted.
{{ ||...}} is transclusion as a template. It is what let's the toc and other things have an arbitrary number of sub items instead of coding a set number. It is sort of analogous to a function in other languages.
is[current] refers to the current tiddler, it means use whatever the current tiddler is.
description is just some field, if you want it called something different it can be changed.
A field can have whatever name you want. They are name:value pairs. There are some common to all tiddlers but you can add any you want. The ones used by almost all of them are: title, created, modified, text, tags, creator and modifier