Show tags as full path

135 views
Skip to first unread message

Brady77

unread,
May 7, 2018, 9:42:11 AM5/7/18
to TiddlyWiki
Say I have a tiddler "Galaxian" tagged with "Arcade". Then the "Arcade" tag is tagged with "Game". I wish I could see all the parent tags (up to the root) with every tag used. Thanks.

Silverfox

unread,
May 7, 2018, 10:59:34 AM5/7/18
to TiddlyWiki
You can use this:

<div class="tc-table-of-contents">
<<toc-selective-expandable 'TitleOfTheRootTagHere' sort[title]>>
</div>

Brady77

unread,
May 7, 2018, 12:13:04 PM5/7/18
to TiddlyWiki
Sorry for not being specific: I meant to show full path on the tag oval inside the tiddler header. Instead of "Arcade" pill there will "Game/Arcade" tag oval.


Jed Carty

unread,
May 7, 2018, 1:08:53 PM5/7/18
to TiddlyWiki
This is a more difficult task than it may seem. Because a tiddler may have more than one parent tag it isn't possible do this simply. You can have something like the breadcrumbs I put on inmysocks.tiddlyspot.com where it shows all paths to the root. You could modify the breadcrumbs macro there to make the sort of tags display you are talking about, I am not sure how difficult it would be though.

Brady77

unread,
May 7, 2018, 1:34:02 PM5/7/18
to TiddlyWiki
Jed Carty wrote:

Because a tiddler may have more than one parent tag it isn't possible do this simply.

Hmm, understand. I thought tags are strictly hierarchical in structure. Like a tree.
 
You can have something like the breadcrumbs I put on inmysocks.tiddlyspot.com where it shows all paths to the root.

I was browsing your wiki a little bit to see how it works and came across this tiddler. I seems that only one of the two tags got into the breadcrumbs...

Thanks, Jed.

Petr

Jed Carty

unread,
May 7, 2018, 1:51:00 PM5/7/18
to TiddlyWiki
Because the breadcrumbs are set up to only use Contents as the apex tag, any path that doesn't lead there isn't shown. If you go into the Other Tweaks tab of the control panel you can turn off Use Apex Tag and it will show all paths, not just the ones that end with Contents.

TonyM

unread,
May 7, 2018, 8:46:24 PM5/7/18
to TiddlyWiki
Brady


Hmm, understand. I thought tags are strictly hierarchical in structure. Like a tree.
 

Whilst tags can be used for representing hierarchies, and if you use new here to create these hierarchies they will be , tags have the added advantage and disadvantage of being free agents that can appear anywhere you want. It is quite easy to tag a tiddler with a tiddler higher in the tree, add multiple parents (more than one tag does this) . The beauty of this is you can build relationships of any kind. If you want strict hierarchies you need to build them that way or use another technique.

Regards
Tony

HC Haase

unread,
May 8, 2018, 4:43:51 AM5/8/18
to TiddlyWiki
@jed
this is quite nice and usefull. As I see it you bredcrumb do show the tag-path (when possible/apex). I tried to import the tiddler and the controlpanel tiddler to my 1.1.16 TW (copy) and nothing worked, could not even display the home tiddler properly, no buttons world nothing.


HC Haase

unread,
May 8, 2018, 4:56:28 AM5/8/18
to TiddlyWiki
sorry.. did not think to test it with a empty wiki. I did and it work...

dammit... now I will have to find out what of my thousand of plug-ins and tweaks that is causing this.

if you have the time jed, it could be really cool if you could package it as a plugin :)

Jed Carty

unread,
May 8, 2018, 5:53:06 AM5/8/18
to TiddlyWiki
Yeah, I forgot that I made it. Someone asked for it a while ago so I threw it together when I was annoyed with another project and I never really thought about it again. I will make a note to collect it into a plugin.
Reply all
Reply to author
Forward
0 new messages