Enhanced version of the directory navigation bar macro

I have found a better solution. I have modified the official catalogue macros a bit. Added links and a tabs macro that comes with each entry. This makes it possible to show the contents of a book in a single card. Although the left-hand table of contents can only be sorted by title which is a bit of a problem because I didn’t find any other solution. Another is that the one on the right leaves a trail of the previous table of contents macro. I don’t know how to get rid of it. But it doesn’t really affect it. And I don’t have the energy to deal with it.

目录宏加强版.json (1.4 KB)

The new macros are used in the same way as the normal catalogue macros. It’s just that the name has changed.

<$macrocall
  $name="navx"
  tag="xxx"
  selectedTiddler="$:/temp/toc/selectedTiddler"
  unselectedText="<p>Select a topic in the catalogue and click on the arrow to expand it.</p>"
  missingText="<p>Missing entries。</p>"/>

The inverted commas in there should be in English. I may have made a mistake when I copied and pasted it.

Use triple backticks like TW. I corrected it in the OP.