Hi Folks,
I’m trying to use TiddlyWiki to compile teaching materials for my professor, a small textbook so to speak.
I want to add a navigation bar at the end of each (section) Tiddler to jump to the previous and next sections, like those commonly seen on blogs, or a simplified version of what Soren Bjornstad implemented on his GrokTiddlyWiki.
So far, I have:
- One Tiddler for each chapter, tagged
chapter
. - Each chapter has a dozen of sections, each section has an individual Tiddler, tagged
chapter1
,chapter2
, etc… And a user-defined fieldindex
, for ordering the content, valued1a
,1b
, …,2a
,2b
, and so on. - In chapter Tiddlers, I use
{{{ [tag[chapter1]sort[index]] }}}
to list out all the sections of this chapter. - A Tiddler named
$:/tags/ViewTemplate
, a template for the navigation bar. (but later may have to exclude it from the chapter Tiddlers)
However, I don’t know how to filter out the links of the previous and next Tiddler.
- In the documentation, there are
before
Operator andafter
Operator, but they require a list field filled, (in my case, for each chapter Tiddler I have to provide a list of ordered sections). - I also thought about making use of the
journal
tag, then the content may have to be organized chronologically.
What is the best practice to realize this?
Thanks a lot!