TOC for Tiddlers with Specific Tag

106 views
Skip to first unread message

Vinayak

unread,
Oct 31, 2018, 6:48:14 AM10/31/18
to TiddlyWiki
Hi

I recently started using Tiddlywiki with BOB. Its really amazing and I am developing new uses. The Tagging concept is really brilliant. Many Thanks for the concept and implementation.

I have seen examples for excluding a specific tag while using TOC  macro (toc-selective-expandable). However my need is to restrict TOC to all tiddlers having specific Tag.

USE Case
I want to create TOC as follows:

Start Tags Documents and PersonA
  • Documents
    • Identity  (Tag : Documents )
      • Passport   (Tag : Identity  )
        •   Passport DOC 1 (Tags : Passport PersonA
    • Bank Accounts   (Tag : Documents )
      • BankA       (Tag : Bank Accounts )
        • Test 1 (Tags : BankA  PersonA)
     I can have similar TOC for for PersonB

Question:
Is this possible in TiddlyWiki
What tag structure and Macro I need to use.

Alternatively I see that I have to Create Compound tags
Like 
"Documents PersonA"
"Documents PersonB"
"Identity  PersonA"
"Identity  PersonB"

Tried to understand TOC macro but it is beyond my skill set. 

Please advise.

Thanks & Regards
Vinayak

 



Vinayak

unread,
Nov 2, 2018, 4:59:31 AM11/2/18
to TiddlyWiki
Hi

Any Other ways to achieve this without having Separate wikis?

Regards 

Mark S.

unread,
Nov 2, 2018, 9:30:49 AM11/2/18
to TiddlyWiki
One trick is to use the sort parameter to insert additional requirements. e.g sort:"tag[Bob]" The problem with this approach is that every branch of the tree that Bob needs will then have to be tagged with "Bob". e.g. Documents will need a Bob tag, Identity will need a Bob tag, etc.

-- Mark

bimlas

unread,
Nov 2, 2018, 11:18:16 AM11/2/18
to TiddlyWiki
By using the "kin" filter, you don't need to add "Bob" to every tiddler, just set the toc parameter to "kin[Bob]". See https://groups.google.com/d/msg/tiddlywiki/YZlPGP0qX1o/tcgTCvoJCgAJ

The filter in under development, but it works (on 5.1.18 prerelease), and I will open a pull request to include it in to the main TiddlyWiki.

Reply all
Reply to author
Forward
0 new messages