outlining by heading within a tiddler?

37 views
Skip to first unread message

Bob Paige

unread,
Feb 7, 2008, 9:40:11 AM2/7/08
to tiddlywiki
Is there an existing macro that builds an outline for a single
tiddler? I just found tagsTiddler, and it is great, but it is not what
I am thinking about.

For example, suppose I have a lengthy tiddler (I use TW a lot for note
taking, one tiddler per meeting). I will use !heading and !!subheading
notation to outline the points made in the discussion. I'm thinking it
would be great if I could include a single tag at the top of the
tiddler (or even in the view template) that looks for ! and !! markups
and builds a mini outline at the top of the tiddler, allowing me to
see the structure of the tiddler and navigate within it at a glance.

Extra points if the outline floats as I scroll the window :)

If this doesn't exist, any pointers to macros that have similar
functionality (i.e. parsing the content of a tiddler, displaying
floating blocks, linking within a tiddler, calling a macro from a view
template) would be greatly appreciated.

--
Bobman

FND

unread,
Feb 7, 2008, 10:38:01 AM2/7/08
to Tiddl...@googlegroups.com
> Is there an existing macro that builds an outline for a single
> tiddler?

Try any of these:
http://devpad.tiddlyspot.com/#TiddlerToCPlugin
http://devpad.tiddlyspot.com/#DcTableOfContentsPlugin
http://tiddlytools.com/#TableOfContentsPlugin

HTH.


-- F.

Bob Paige

unread,
Feb 7, 2008, 11:26:06 AM2/7/08
to Tiddl...@googlegroups.com
Thanks for the pointer! DcTableOfContentsPlugin looks like exactly
what I want, but I do have one question regarding it.

I've installed the plugin in my TW and it works fine. By default, the
ToC is displayed as a bulleted list. The example CSS embedded in the
plugin is a great example, but I don't want red/green outlines. The
CSS actually used on devpad.tiddlyspot.com is great, but I can't find
where it is defined!

The obvious choice of 'StyleSheetTableOfContents' doesn't appear to be
the correct one; it defines some different tags.

Any ideas where/how the CSS is defined on there?

--
Bobman

FND

unread,
Feb 7, 2008, 1:00:44 PM2/7/08
to Tiddl...@googlegroups.com
> The CSS actually used on devpad.tiddlyspot.com is great, but I can't
> find where it is defined!

Actually, DcTableOfContentsPlugin is not in use* on my DevPad - I'm just
hosting the version upgraded by Saq, because Doug Compton (the original
author) hasn't been around to upgrade his version.
So the Table of Contents you see on my DevPad is actually generated by
TiddlerToCPlugin, and the StyleSheetTableOfContents shadow tiddler
pertains to TiddlerToCPlugin.
Sorry for the confusion - not sure how to resolve this issue though.

So anyway, in order to apply similar styling to DcTableOfContentsPlugin,
you'd have to combine the selectors from that plugin's "Changing how
it looks" section and the properties in StyleSheetTableOfContents.
Let me know if you need help with that.


-- F.


* while DcTableOfContentsPlugin is tagged with "systemConfig", DevPad is
still using TiddlyWiki v2.1.3 - DcTableOfContentsPlugin specifies the
minimum required "CoreVersion" as v2.2, so it's never actually loaded

Reply all
Reply to author
Forward
0 new messages