Filter help and complex tagging

34 views
Skip to first unread message

taale...@gmail.com

unread,
Oct 10, 2020, 1:14:40 AM10/10/20
to TiddlyWiki
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>

taale...@gmail.com

unread,
Oct 10, 2020, 1:39:40 AM10/10/20
to TiddlyWiki
Also - how do I format it so it always appears at the top of the tiddler, above contents?

taale...@gmail.com

unread,
Oct 10, 2020, 1:43:52 AM10/10/20
to TiddlyWiki
Oh wait - figured out how to make it always appear at the top:

list-before field with $:/core/ui/ViewTemplate/body

Reply all
Reply to author
Forward
0 new messages