5

如果我去 TiddlyWiki 站点,我可以看到选项卡Content。如何为我的 tiddlywiki 文件创建自己的目录?

4

3 回答 3

6

我发现这个文档真的很混乱,但这是我做的最好的:

<div class="tc-table-of-contents">

<<toc-selective-expandable 'TableOfContents' sort[ind]>>

</div>

然后,用 TableofContents 标记每个提琴手。

最后,在编辑每个 tiddler 时,添加一个名为“ind”的新字段(对于索引 - 您可以将其更改为您喜欢的任何内容,只要它没有在其他地方使用,当然)。为“ind”分配一个从 0 开始的值,以告诉它您希望 tiddlers 进入的顺序。我增加了 10 而不是 1,以防我想重新排列一些东西或在中间插入更多东西。

于 2016-11-01T07:05:06.350 回答
5

创建一个新的 tiddler 并给出标题Contents

在标签下,给出值$:/tags/SideBar

在键入此提琴手的文本下,给出 <$list filter={{$:/core/Filters/AllTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/>

于 2016-02-16T05:01:40.353 回答
3

This is explained in the documentation.

The short version: Add some tag (e.g. Content) to the pages you want to appear in the TOC; then in the place where you want it to appear, use one of the macros with that tag name (e.g. <<toc Content>>). To make a nested TOC, tag pages with the names of tags that appeared at the top level. So for example if you have a tiddler named First that is tagged with Content, then you can tag more tiddlers with First, and they will appear indented below First in the TOC.

于 2015-09-07T17:21:43.430 回答