TW5: NEW plugin: tobibeer/toc - a filter to fetch titles in a table of contents

66 views
Skip to first unread message

Tobias Beer

unread,
Jan 11, 2017, 6:18:45 PM1/11/17
to TiddlyWiki
Hi everyone,

To pick up where I left it, I now published the initial version 0.5.0 of tobibeer/toc.

It's a filter filter called toc that allows you to retrieve titles in a table of contents as a flat list with a range of options:
  • root
    defines the title that is the root of your toc, e.g. TableOfContents, defaults to currentTiddler

  • level
    a level up until the (tagging) tree is traversed

  • exclude
    a variable defining a filter of titles to be excluded

  • truncate
    a variable defining a filter of titles to be trunctated (not further checked for children)

  • list
    a fieldname establising the hierarchy, by default: tags

  • sort
    a field by which to sort, use !field-name to sort DESC
It can be useful...
  1. to get an index of all titles in a toc
  2. to implement pagination through a toc
Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages