I’m currently in the “concept of a plan” stage of a potential new TW.
What I’m thinking this new wiki will need is a way to display a sequence of tiddlers. I’m wanting to have a tiddler that is “host” to a sequence of other tiddlers selected via a filter and displayed like:
Here is a generalized version of a switcher that I use. You can copy all the code below, go to TiddlyWiki.com, edit a new tiddler, paste the code, then play around with it in the preview pane.
There was a thread a while back about how to display a small number of tiddlers from a larger set, with pagination controls. While this isn’t precisely your case, the answers probably could be tweaked to include just one.
I also wrote a plugin that has overlapping ideas with your request. There we had no “hosting” tiddler, just a footer that pointed out your path through a sequential set of tiddlers.
It may be that neither will do, but I think both might help show the way.
Keep in mind a tag can be used like this, first/last, next and previous buttons can be displayed for the tiddlers with a given tag, and navigating the tag list. They can be reordered with drag and drop on the tag pill.
I would be happy to put the time in to do the following;
Use a tag for a list
If the tag tiddler indicates eg show-tag-nav=yes
Display First/Last Next/Previous on tiddlers so tagged
I recently stumbled across an older plugin repo that had something called “Wizard Wizard” which sounded similar to what you are trying to do but I haven’t really dug into it yet.
After perusing the various solutions, I’ve decided that Eric’s was the closest to what I was looking for. However, I really liked the way Brian’s switcher included the title of the tiddler on the prev/next buttons and how they were disabled when they were the first/last. I also preferred to always show the tiddler title not caption for the currently visible tiddler. However, Eric’s technique of using the caption if present instead of the title was what the prev/next buttons needed.
Edit: After using my original code for a bit, I realised that when navigating using the bottom controls I wanted the view to scroll back up to the top. I’ve updated my original code to add button actions to implement that.
This should be the final revision. The main change is to make it a single parameterised and reusable procedure. I also didn’t like the current tiddler title in both navbars, so made it top only.
Re procedure parameters, I did it that way because I found that to be a flexible way to pass values prior to the procedure call by using a $let. See my Shields macro at Andrew's TiddlyWiki — Plugins and Macros specifically the tiddler count one.
Re div element, I disagree. As per point 6 at HTML Standard, a div element is not a void element.
I’ve now been using and refining this for a few weeks on a private TW.
The procedure now uses qualify to automatically make unique state tiddlers and supports an explicitly named state tiddler (both ideas lifted from the tabs macro). It excludes draft tiddlers. It handles the removal of tiddlers from the filter (eg, deletion). There is a new direct select control.
I’m now very happy with how it’s turned out and hope others may find it useful.