Duplicate (but not really) tiddler titles

83 views
Skip to first unread message

Godiva Glenn

unread,
Jun 28, 2018, 10:54:29 AM6/28/18
to TiddlyWiki
I'm trying to organize some notes but there are "duplicate" headers.

For example I have two top-level notes for planets, and then I'd like to have a section of notable locations on each planet. I can make a 'locations' tiddler and tag it to a planet A but then I'd need a different label for planet B. Is there something I'm missing? I'm looking to have the structure of:

Planets
     Planet A
          Locations
     Planet B
          Locations

Is the only solution to name each one accordingly, ie. Locations - Planet A, Locations - Planet B ? This just looks redundant in the side-bar and such.

Mark S.

unread,
Jun 28, 2018, 11:35:03 AM6/28/18
to TiddlyWiki
If you're creating a tag-based, TOC style structure, then you could tag the "locations" tiddler with "Planet A" and with "Planet B" -- reusing the location tiddler.

Is that you what mean?

Good luck!
-- Mark

Godiva Glenn

unread,
Jun 28, 2018, 12:10:15 PM6/28/18
to TiddlyWiki
But then anything under that would show up on all the instances, unless there is a way to filter the results via tag. Ideally if anything tagged "locations" AND "Planet A" would only show up under Planet A, but no matter how I fiddle, it shows up under Planet B as well. 

I've been digging through the scripts to see if there's a way to add a filter to Planet A so that any content nested under has to be tagged "Planet A" + whatever other tags to show, but no luck. I'm not sure if I'm not heading in the correct direction.

Jed Carty

unread,
Jun 28, 2018, 12:22:07 PM6/28/18
to TiddlyWiki
I worked on some things like this but it didn't get very far. You can see what I made here https://ooktech.com/jed/ExampleWikis/OtherMindMap/

Mark S.

unread,
Jun 28, 2018, 12:58:40 PM6/28/18
to TiddlyWiki
The tiddlers and tags are being used in two different ways. In one way, they are used to convey structural relationships within the TOC tree. The other way, they are being used to convey semantic relationships. These two uses do not always overlap perfectly.

One workaround is to put the "location" semantic information into a separate tiddler, say "location-detail". Then transclude location-detail into "location". Then you can tag a tiddler with "Planet A" and "location-detail" without extending the TOC tree. This approach will be most useful, of course, if you have lots of other Planets that need to reference the same location detail.

I'm puzzled how multiple planets can share the same location. Aren't they always moving around? So they could share a "location" (from the viewer's perspective) but it would change?

Thanks!
-- Mark

Godiva Glenn

unread,
Jun 28, 2018, 1:16:27 PM6/28/18
to TiddlyWiki
The planets don't share the same location. I think what I typed wasn't clear. I only want to re-use the title for TOC purposes.

As such:

Planet A
>>Locations
>>>>Sand Dunes
>>>>Crash Site

Planet B
>>Locations
>>>>Ice Mountains

The locations themselves are not repeating, just the broad title of "Locations" is repeating, but in different ways.

Godiva Glenn

unread,
Jun 28, 2018, 1:20:52 PM6/28/18
to TiddlyWiki
This looks like what I'm trying to do, and seeing how buggy it is I wonder if I need to scrap my attempt and try something different entirely. 

Mark S.

unread,
Jun 28, 2018, 1:28:54 PM6/28/18
to TiddlyWiki
Oh -- that means that "Locations" really is being used in two different ways.

But, if you're using the TOC macros, there's good news.

You can make "Locations on Planet A", "Locations on Planet B" , etc. and get the structure you need.

BUT, set the caption field of "Locations on Planet A" to "Locations". Same for "Locations on Planet B", etc.

Then you can get the output to look like:

Planet A
>>Locations
>>>>Sand Dunes
>>>>Crash Site

Planet B
>>Locations
>>>>Ice Mountains

HTH

-- Mark

Godiva Glenn

unread,
Jun 28, 2018, 1:43:01 PM6/28/18
to TiddlyWiki
Thank you. I'm new to TW and hadn't known about the Caption field. This changes a lot in how I've structured things (for the better). Awesome.
Reply all
Reply to author
Forward
0 new messages