I am using the Simple Navigation macro on my website within a specific area. It works well, except when I click on next or previous it goes to the next tiddler in alphabetical order, instead of created order. I’m hoping this can be rectified.
Is anyone able to help me to add a sort function please?
The sequence (order) of tiddlers can be simply changed using the tag pill!
So it seems the macro uses the list field of the tag tiddler to define the order. So you’ll need to open the tag-dropdown and there you can sort by drag & drop.
Eg: If you open HelloThere at tw-com you can change the order of the TOC with dnd
Sorry, I’ve mislead you. I don’t mean in a navigation bar. I’m attempting to add “previous | next” to the bottom of tiddlers within a specific section of my website using the tag “Reading”. I’ve worked out how to use the macro and it works well, but when I click on next the result is not date related. It’s alphabetical, which doesn’t work for me.
Here’s a snippet of the original code for the Simple Navigation macro.
The first line shows the parameters as “tag”, “class” and “close”. I want to add “date”. But I know that adding date in that line isn’t enough. I also need to add code in the previous and next sections, but I don’t know where to add the code or what code to add.
I think it will be something starting with list filter, but I’m out of my depth.
I know the code in the previous section needs to take the user back to the previous post and the code in the next section needs to take the user forward to the next post. I also know that I want to use the “created” option. But that’s all I can work out on my own.
I’ve tried some things, but nothing worked, or I broke the macro. Can you help please?
@Scott_Sauyet I actually tried this plugin yesterday, but couldn’t work out how to get it to work for two values. I could see you had it working for Tutorial and Pathway so I believe it’s possible. My issue is that I don’t want to have to drag and drop posts into the order I want because I have over 100 tiddlers in each section. I want something that sorts by date created.
Yes, note that the tag tiddlers Tutorials and Pathways are both tagged Wizard. That’s all it takes. There is a configuration option for the sort field: $:/plugins/ScottSauyet/WizardNav/config, but I just realized that it’s global. If I ever get back to this, I could probably add an override for this in a field of the tag tiddler.
I’m not pushing this. It’s worked well for me. If it works for you, great. But I think you already have a solution you’re happy with.