On Tuesday, September 24, 2019 at 8:55:59 PM UTC-7, Mohammad wrote:
>
> Hi Eric,
>  The TableOfContents in the left side bar is quite interesting!
> When you choose an item in the list, the tiddler is opened and the item is 
> highlighted!
> When you navigate through the contents by clicking the next and previous 
> tiddler the
> TOC is updated and the highlighted item in the list is updated!
>
> My question is, can we use this TOC as a plugin in other wikis?
> Is there any underlying JS?
>

There is one little bit of JS: TiddlyTools/TOC/scrollhere.js, which is used 
to ensure that the highlighted TOC item is always scrolled into view, even 
if a long toc list is in a scrollable area and that item is not currently 
visible when you navigate to it (i.e, when opened by clicking a link within 
tiddler content).

There's also some tie-ins with other parts of the TiddlyBook, such as 
support for Favorites (which shows a star next to each topic that is marked 
as a favorite), and the ReadOnly toggle (when unlocked, it adds a "more 
commands" dropdown when you mouseover a topic).  If you just copy just the 
TiddlyTools/TOC/* tiddlers, those extra features will simply not be shown, 
since their macros won't be defined in your document.

I'm going to create a separate TW that packages just the TOC and related 
tie-ins, so it will be easier to import the pieces into your own 
documents.  Note that these pieces are not actually implemented as a true 
TW plugin... they are just a bunch of tiddlers (i.e., no shadows).

I'm a bit busy right now with my primary work project, but I should be able 
to put something together sometime in the next few weeks.

-e


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edf191c7-d925-4829-a906-9a027f40dc93%40googlegroups.com.

Reply via email to