Table-of-Contents Macros

126 views
Skip to the first unread message

unread,
5 Aug 2021, 10:27:4605/08/2021
to TiddlyWiki
Hello forum,

for the TOC I use the macro "toc-tabbed-internal-nav".
1. Is it possible to sort the list?
2. where are the colors defined for the selected tiddler (hover)?
toc-tabbed.png

Thanks
Stefan

PMario

unread,
5 Aug 2021, 11:11:3205/08/2021
to TiddlyWiki
Hi,
Which theme and which palette do you use in the screenshot?
-mario

unread,
5 Aug 2021, 11:50:0905/08/2021
to TiddlyWiki
Hi Mario,

I use 'Twilight ' color palette.

Stefan

unread,
7 Aug 2021, 12:39:2307/08/2021
to TiddlyWiki
Any ideas?
Stefan

springer

unread,
8 Aug 2021, 17:35:4708/08/2021
to TiddlyWiki
Stefan,

The toc macro will sort tiddlers according to their current tag-specific order (stored in the list field of the tag's own tiddler). The most straightforward way to sort them differently is to find the tag-pill for the tag, click to show a "drop-down" list from the tag-pill, and drag your tiddlers into your preferred order. (I have modified my ViewTemplate subtitle shadow to show any tiddler's own tag-pill (if it serves as a tag), so that reordering the list is always handy.

You can also specify a sort order within the toc macro itself, if it's the kind of sort that can be automated:

<<toc-tabbed-internal-nav "Contents" "sort[title]">>

(Is there a reason you're using the more verbose macrocall, rather than this more compact syntax?)

For the colors, you should be able to use the palette editor for your chosen palette. If you're stuck (even after scanning the editable palette) you can use the browser's "inspect" function to peek behind the scenes to understand the css class being applied.

-Springer

unread,
9 Aug 2021, 07:29:3009/08/2021
to TiddlyWiki
Hello Springer,

thanks for your feeback.

I found out, that sorting works without any changes, when I close my Wiki and reopen it. (I'm using TiddlyDesktop).
Only 'save' and start vom 'home' within the Wiki doesn't help.

--> (Is there a reason you're using the more verbose macrocall, rather than this more compact syntax?)

Yes, I have a longer TOC List tagged 'Inhalt'. There is a Tiddler called 'Info'. When I have short Infos, I link this Tiddlers to the 'Info'-Tiddler.
With this configuration I have a very compact overview, and I can go very fast through this list...

--> For the colors, you should be able to use the palette editor for your chosen palette. If you're stuck (even after scanning the editable palette) you can use the browser's "inspect" function to peek behind the scenes to understand the css class being applied.

I'm not suceeded yet - in color palette I can't find it.
For this macro are also no hover colors defined.

Regards
Stefan
Reply all
Reply to author
Forward
0 new messages