On Wednesday, January 22, 2020 at 11:09:44 AM UTC-8, Mat wrote: > > Drag'n dropping a toc item creates double entries. >
I wrote these macros for my TiddlyBook framework which is used by InsideTW. As a consequence, there are some TiddlyBook-specific dependencies that you need to satisfy. Specifically, the <<toc-show-item>> macro is displaying ALL entries twice because it depends on the definitions of the .readertools and .authortools CSS classes, which are found in TiddlyTools/ReadOnly/Stylesheet These classes are used throughout the TiddlyBook framework to enable alternative output based on the setting contained in $:/config/TiddlyTools/ReadOnly. If that config tiddler contains "yes", then you get "read-only" TOC displays (which bypasses the drag-and-drop handling). If that config tiddler contains anything else (or doesn't exist) then you get the full "authoring" TOC display, which includes drag-and-drop handling and the on-hover "more" menu. Thus, to eliminate the doubled TOC entry display, import TiddlyTools/ReadOnly/Stylesheet into your document. As soon as you do that, each TOC entry will be displayed just once, as intended. The icons for open/close to the left of each item can't be seen. I've > searched but can't figure out why. > As the name implies, the <<toc-all>> macro is not supposed to show open/close arrows... it ALWAYS shows ALL items in the tree. If you want to be able to toggle the tree branches, use <<toc-tree>> instead of <<toc-all>>. You will then see the open/close arrows next to branches that have children. The state flags that control which branches are currently open are stored in $:/config/TiddlyTools/TOC. If you want to open all tree branches at once, put the <<toc-toggle-all>> macro somewhere in your content. This macro displays a button that toggles the "OpenAll" state flag in $:/config/TiddlyTools/TOC. That should take care of the two problems you reported. Let me know how it goes... enjoy, -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/58ebb514-d600-4645-9190-24bf8208bfc6%40googlegroups.com.

