Hey all,
I've created some checkbox tagging for my tiddlers: review, write, rewrite, edit, example, placed, order. Obviously, these are for tracking status for writing a book.
I want those checkboxes to appear on every tiddler, except:
- if tagged with nc (for "not a chapter")
- or if tagged with all three of example, placed, and order AND none of the other four (if there's an example, and its been placed and ordered, but still has edit tag (i.e. needs editing) - it still should show all the checkboxes
- Also, if the tiddler is tagged with any one of edit, write, or rewrit, then the review checkbox is hidden
My filter at the moment is:
[all[current]!tag[nc]!tag[example]!tag[placed]!tag[order]]
issues there:
- nc works correctly - nc tag means no checkboxe
- checkboxes disappear if any one of the placed, order, or example show up
- I have no idea how to do the and condition - if it was SQL, i'd be golden, but...
- if the tiddler is tagged review, and I click write - is there a way to remove the review tag automatically, without having to manually remove it?
Template tiddler content below (tiddler tagged with $:/tags/ViewTemplate)
Thanks,
Aidan
<$list filter="[all[current]tag[ch]!tag[write]!tag[redo]!tag[edit]]">
<$checkbox tag="review"> Review</$checkbox>
</$list>
<$list filter="[all[current]tag[ch]!tag[example]!tag[placed]!tag[order]]">
(( <$checkbox tag="write"> Write</$checkbox>
<$checkbox tag="redo"> Rewrite</$checkbox>
<$checkbox tag="edit"> Edit</$checkbox> )) ((
<$checkbox tag="example"> Example</$checkbox>
<$checkbox tag="placed"> Placed</$checkbox>
<$checkbox tag="order"> Ordered</$checkbox> ))
</$list>