Link with Custom Title to Section Heading Inside Tiddler

2,603 views
Skip to first unread message

gigajosh

unread,
Feb 4, 2010, 10:41:08 AM2/4/10
to TiddlyWiki
Hi, I'd start by telling you what version of TW I have, but after a
vigourous search I can't figure that out! so any help on how I
determine the version would be great, but that's not what this
question is about..

I'm trying to link from inside a tiddler to a section further down the
tiddler, BUT note that I'm also trying to add a custom title.

E.G.

My tiddler is called MyNotes.. and there's a heading at the bottom of
this tiddler called !Bottom
Now imagine in the body of my tiddler (between the dashed lines) I
have the following:

-----------------------------------

See the section below called [[MyNotes##Bottom]]

-----------------------------------

This gives me a local link. If I click that link it successfully takes
me to the heading at the bottom of the tiddler called !Bottom -
Success!

HOWEVER, if I then try to add a custom title to this local link, it
breaks, and tries to link me externally.. e.g.

------------------------------------

See the section below called [[Title|MyNotes##Bottom]]

------------------------------------

This doesn't work! The mouse-ver already tells me it's an external
link, and therefore clicking it obviously fails. It tries to open a
local file called "MyNotes##Bottom" in my tiddlywiki's path.


Is this supposed to work? Can anyone assist?

Morris Gray

unread,
Feb 4, 2010, 6:19:25 PM2/4/10
to TiddlyWiki
On Feb 5, 2:41 am, gigajosh <gigaj...@gmail.com> wrote:

> See the section below called [[Title|MyNotes##Bottom]]
>

> This doesn't work! The mouse-ver already tells me it's an external
> link, and therefore clicking it obviously fails. It tries to open a
> local file called "MyNotes##Bottom" in my tiddlywiki's path.
>
> Is this supposed to work? Can anyone assist?

You need http://www.tiddlytools.com/#SectionLinksPlugin

Morris

Anthony Muscio

unread,
Feb 5, 2010, 1:05:35 AM2/5/10
to tiddl...@googlegroups.com
Oh and  put
<<version>>

In a tiddler and save it and it will tell you. Of course each plugin can have it's own version.

And Using the sections links plugin I favor using the TOC feature to automatically generate a Table of contents for each tiddler from it's sections.

Regards Tony

TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed something.
www.tiddlywiki.com



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.


Thomas Schulte

unread,
Nov 12, 2014, 4:53:45 AM11/12/14
to tiddl...@googlegroups.com, msg...@symbex.net.au
Will this plugin work with Tiddlywiki 5 or isn't it needed in 5?

Stephan Hradek

unread,
Nov 12, 2014, 6:24:46 AM11/12/14
to tiddl...@googlegroups.com, msg...@symbex.net.au


Am Mittwoch, 12. November 2014 10:53:45 UTC+1 schrieb Thomas Schulte:
Will this plugin work with Tiddlywiki 5

No
 
or isn't it needed in 5?

There is no such thing as a "Section" in 5.

Thomas Schulte

unread,
Nov 12, 2014, 6:31:38 AM11/12/14
to tiddl...@googlegroups.com
How can I make a link within a tiddler to a subsection without turning it into a html file in TW5?

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/m0Dw4M4bCgE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.

Stephan Hradek

unread,
Nov 12, 2014, 6:35:20 AM11/12/14
to tiddl...@googlegroups.com


Am Mittwoch, 12. November 2014 12:31:38 UTC+1 schrieb Thomas Schulte:
How can I make a link within a tiddler to a subsection

There is no subsection.
 
without turning it into a html file in TW5?

You can freely insert HTML in a tiddler without setting its type to be text/html

Danielo Rodríguez

unread,
Nov 12, 2014, 11:33:26 AM11/12/14
to tiddl...@googlegroups.com, giga...@gmail.com
Substories is your way to go.
Sadly I have not enough experience to help you with it.

Regars.

Tobias Beer

unread,
Nov 13, 2014, 8:31:24 AM11/13/14
to tiddl...@googlegroups.com, giga...@gmail.com
Substories is your way to go.

That appears to be false. Although not conclusively explained, substories in tw5 seem to exist for different purposes...

 

Danielo Rodríguez

unread,
Nov 13, 2014, 11:23:39 AM11/13/14
to tiddl...@googlegroups.com, giga...@gmail.com
Did you tried it?

The result is that clicking on a link will open the target tiddler within the same tiddler. That can give the sensation that you are navigating inside the tiddler.

Tobias Beer

unread,
Nov 13, 2014, 12:44:05 PM11/13/14
to tiddl...@googlegroups.com, giga...@gmail.com
Hi Danielo,
 
Did you tried it?

Of course. ^.^
 
The result is that clicking on a link will open the target tiddler within the same tiddler. That can give the sensation that you are navigating inside the tiddler.

It's seems to be an entirely different process. One is jumping to an anchor within a static representation and the other is dynamically rendering somewhat unconstrained content, effectively changing the content of what is displayed.

Best wishes, Tobias.

Evolena

unread,
Nov 13, 2014, 5:02:03 PM11/13/14
to tiddl...@googlegroups.com, giga...@gmail.com
I just gave it a look some time ago, but what if
- you create a substory in a tiddler, with several tiddlers inside it
- you insert at the top of the hosting tiddler a list similar to the "Open" tab, but for the substory

If you manage to prevent the tiddler toolbar of the substory to show, or maybe a completely different ViewTemplate for substories... there are maybe things to explore, indeed.

Tobias Beer

unread,
Nov 13, 2014, 7:52:45 PM11/13/14
to tiddl...@googlegroups.com, giga...@gmail.com
there are maybe things to explore, indeed.

Very interesting, didn't dare think that far. Could be a good plan, indeed.

Best wishes, Tobias. 

Danielo Rodríguez

unread,
Nov 14, 2014, 2:35:55 AM11/14/14
to tiddl...@googlegroups.com, giga...@gmail.com
What evolena described is very similar to what is exposed on substories on TW.com

http://tiddlywiki.com/#Creating%20SubStories

Did you clicked on the link at the bottom? It opens the HelloThere tiddler as it was a section of the Creating Substories tiddler. You can put a list widget at the top that creates links to all the sections (actually tiddlers) that will be opened as part of the current tiddler.

Try this at tw.com

<$navigator story="MySubStory" history="MySubHistory">

<$list filter="[tag[TableOfContents]]">

*<$link>{{!!title}}</$link>
</$list>

<$list filter="[list[MySubStory]]" history="MySubHistory">
<div>

! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>

<$transclude/>
</div>
</$list>

</$navigator>

Does not looks like a toc?

Tobias Beer

unread,
Nov 14, 2014, 4:23:55 AM11/14/14
to tiddl...@googlegroups.com, giga...@gmail.com
Does not looks like a toc?

Sure looks like a toc, but I don't think a toc alone is what it's all about.

What is it about?

The ability to not just open a "section tiddler", in-place or standalone, but to 
open it in the context of an "aggregated story" tiddler, whether that aggregation was achieved manually or automatically, doesn't matter... thus a representation preserving the story-lineup (not just when tw opens) ...whereas if things were dynamically added or removed to this story, so would the toc be ammended or truncated and vice versa.

In short, the usecase is to scroll to (a section) tiddler X within (an aggregated story) tiddler Y ...preferably without Y having to be open yet.


———

I'm sure this has been discussed at lengths, but not being able to leverage sections has the side-effect of bloating up the tiddler namespace, like...

Author A — Story X
Author A — Story X — Summary
Author A — Story X — Chapter 1

Whereas at some time in the past, the list of tiddlers was a lot more concise with a mere...

Author A — Story X

Architectural constraints be what they may, for simplicity's sake, I think it's a good tenet to provide means for reducing the number of required tiddlers to a minimum.

What could be interesting is the ability to have substories / subsections actually embedded within a "story tiddler", via some sort of nested JSON construct / field, which would sure require some UI magick to have it represented as a substory, probably right after the main story, and then of course the ability to make that content editable.

If need be, there could even ba a way to "explode" such a substory construct to actual tiddlers.

———

Don't get me wrong, I can see how exposing substories as individual tiddlers provides benefits as in...

http://tw5.scholars.tiddlyspot.com

...where you can thus add individual notes, ideas, comments, etc. to individual chapter tiddlers of book tiddlers, which sure wouldn't be possible with the above approach where substories where contained within some field of a parent story-aggregate.

But then, again, it would really be nice to see all of book and chapters in one story lineup as...

story tiddler
chapter 1
chapter 2

...with the ability to directly open / go to any (generated) "section" via some clickable toc (or a manually defined link, really), and preferably 
some backlink in a "section heading" to quickly jump back to the toc

——— 

Of course, I am 
totally aware that that's a big wishlist. ^_^

Best wishes, Tobias.

Evolena

unread,
Nov 14, 2014, 5:13:49 AM11/14/14
to tiddl...@googlegroups.com, giga...@gmail.com

But then, again, it would really be nice to see all of book and chapters in one story lineup as...

story tiddler
chapter 1
chapter 2

...with the ability to directly open / go to any (generated) "section" via some clickable toc (or a manually defined link, really), and preferably 
some backlink in a "section heading" to quickly jump back to the toc

I once used vertical tabs for Introduction, Chapter 1, Chapter 2, ... , Conclusion. Of course, two chapter aren't displayed at the same time, and the buttons to navigate from one chapter to another are at the top of the tiddler.
The new toc-tabbed in the prerelease 5.1.5 look interesting, too (http://tiddlywiki.com/prerelease/#TableOfContentsMacro%20Tabbed%20Example)

Tobias Beer

unread,
Nov 14, 2014, 7:49:45 AM11/14/14
to tiddl...@googlegroups.com, giga...@gmail.com
The new toc-tabbed in the prerelease 5.1.5 look interesting, too (http://tiddlywiki.com/prerelease/#TableOfContentsMacro%20Tabbed%20Example)

That's true. Very powerful as a kind of documentation / reference navigation, perhaps even better than a simple toc above the content.

Best wishes, Tobias.

Thomas Schulte

unread,
Dec 4, 2014, 6:28:11 AM12/4/14
to tiddl...@googlegroups.com
Now if I can understand how to implement it. The explanation is still rather arcane.

--

Tobias Beer

unread,
Dec 4, 2014, 10:19:30 AM12/4/14
to tiddl...@googlegroups.com
Hope that helps...

Thomas Schulte

unread,
Dec 4, 2014, 3:01:53 PM12/4/14
to tiddl...@googlegroups.com
Ohhh that looks real fine.  I do like to mess with programs but I'm not smart enough to be a programmer. HTML and Tiddlywiki satisfy my urges nicely.  I was messing around with the 5.1.5 example and was starting to get it but not quite. Tobias, your site looks like one to bookmark!


--

Tobias Beer

unread,
Dec 4, 2014, 7:29:39 PM12/4/14
to tiddl...@googlegroups.com
Ohhh that looks real fine.  I do like to mess with programs but I'm not smart enough to be a programmer. HTML and Tiddlywiki satisfy my urges nicely.  I was messing around with the 5.1.5 example and was starting to get it but not quite. Tobias, your site looks like one to bookmark!

Glad to be of help. :)

I hope you won't shy from a bit of html. Personally, I think it's a incredible strength of TiddlyWiki and a blessing, not a weakness... to be able to mix and match both syntax worlds.

Best wishes, Tobias.
Reply all
Reply to author
Forward
0 new messages