[TW5] Duplicate tiddler names and TOC tree

184 views
Skip to first unread message

Bob Flandard

unread,
Sep 20, 2015, 4:47:59 AM9/20/15
to TiddlyWiki
Hello,

I'm using the excellent toc macro, but notice that it's not possible to have two (or more) tiddlers with the same name, which means that two distinct level1 tiddlers can't have level2 children with the same name. I could just think of unique names, but that looks a bit strange (e.g. TiddlyWiki1, TiddlyWiki2... where no order is actually implied). Is there a nifty way around this?

Thanks, Bob

Tobias Beer

unread,
Sep 20, 2015, 6:32:57 AM9/20/15
to TiddlyWiki
Hi Bob,

There is: using the caption field.

In fact, I am thinking that
I might also want an option to
shown the the caption as the title
in view-mode, thus:

displayed title: Introduction
actual title: My New Book With A Long Title - Introduction

- tb

Bob Flandard

unread,
Sep 20, 2015, 7:32:59 AM9/20/15
to TiddlyWiki
Hello tb,

Thanks for the link. That is nifty and works well. The caption field displayed as the tiddler title would be a nice option. There could be many tiddlers that you wanted displayed with a title "Introduction" as it's a common heading, but only one tiddler is allowed that privilege.

Happy doings, Bob




Suzanne McHale

unread,
Sep 23, 2015, 10:02:57 PM9/23/15
to TiddlyWiki
I tried that with mine (two tiddlers with the same name but under different parent tags), but it did not work for me - "Do you wish to overwrite the tiddler [tiddler name]?"

Eric Shulman

unread,
Sep 24, 2015, 12:25:03 AM9/24/15
to TiddlyWiki
On Wednesday, September 23, 2015 at 7:02:57 PM UTC-7, Suzanne McHale wrote:
I tried that with mine (two tiddlers with the same name but under different parent tags), but it did not work for me - "Do you wish to overwrite the tiddler [tiddler name]?"

Each tiddler *title* must be unique (e.g., "Intro1", "Intro2", etc.).  If you add a *caption* field to a tiddler, you can specify the text that will appear in the TOC list. However, the caption value does not have to be unique to each tiddler.  Thus, you can set it to be "Introduction" in more than one tiddler, and that is the text that will appear, even though the underlying *title* fields are different.

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
Reply all
Reply to author
Forward
0 new messages