I’ve searched the forums for information on this and tried a lot, (nearly four or five hours) but I’ve found that it either doesn’t work or TiddlyWiki issues an error warning. So eventually I chose to come here for help.
I would like the history to remain only this one entry when opened, no matter what link I go through. Because I need the following expression to take effect.
I think OP can be clearer: is it about how links in general behave? (They should behave like zoomin)?
Or is there a particular place in a standard-story-river wiki where you’d like to have a special button-like link — one that looks like any other link, but actually closes everything else first?
The main function in the code is to display a breadcrumb of an entry, adapted from another user on the forum, but the source I forgot, sorry.
The main problem at the moment is that whenever I open many entries, this breadcrumb doesn’t change accordingly. This is because based on the expression, [list<tv-story-list>first[]] , only the first story river list will be read. But this is not what I was hoping for.
For example, if there are A,B,C, three tiddlers in the story river and they are all open. All of them will only show one in zoomin view. But they are in the Story River in the right order. That is, if I open tiddler B, and at the same time C and A are also open, only the breadcrumbs of either C or A will appear according to the expression and the code above.
So I want a global way that I can open a certain link and close the presence of other tiddlers.
The above is my adapted code. But to be honest, I don’t really understand the logic in it, I just adapted it to be able to apply it in a wider range of situations.
That’s close to what I was trying to say. I checked some forums and modified $:/core/ui/PageTemplate in various ways. But in the end, none of them were productive.
Because I can’t understand something like $linkcatcher or $eventcatcher or messagecatcher, and it takes a lot of experience to use that code well, and to run it with code like define.
Did you try my trails-plugin? It will be added to the tiddler ViewTemplate. So you do not need to mess with the page template, wich does not really know, what’s going on in the story river.