Hello. I have found some information on this relating to Tiddlywiki Classic but I cannot find anything on how to do it in TW5.
I have a two wikis, a daily journal <Journal.html> and a database of places <Places.html> in the same folder. When I visit a particular place in Places.html I want to be able to put a reference in Journal.html to the tiddlers in Places.html of places I visit.
Any help on how to do this would be greatly appreciated.
@Rob_Jopling
I think you are looking for something like:
Places.html#London,%20England
You may want to add additional attributes to your link to get this to open on a different tab.
Hope this helps.
Thank you for pointing me in the right direction. I got the link to work with:
<a href="./Places.html#London, England" target="_blank">London</a>
Rod, I am working on a button I call smart-interlink which provides a button on tiddlers that works, not unlike the permalink button, however it allows you to copy or drag a link formed like your above example, in a html a record. However it includes additional features like a computed target / target tab/window.
- Basically it reliably provides interwiki links.
- The only reason it has not yet being finished is I am trying to make it into a larger reliable solution to manage wikis and their window.name. File and http/s links.
- I have recently collected most of the pieces to complete this.
- My biggest annoyance is browser tabs do not remember their window name.
This is an example of link it generates to a wiki;
To an other wiki/tiddler;
<a data-browser="Firefox" href="https://tiddlywiki.com/#%24%3A%2FControlPanel" target="tiddlywiki.com" title="Smart interlink">tiddlywiki.com</a>
To a wiki
<a data-browser="Firefox" href="https://tiddlywiki.com/" target="tiddlywiki.com" title="Smart interlink">tiddlywiki.com</a>
The reason I include the browser name is because, my wiki tabs have a “home browser”. FireFox, Chrome or Edge.
I would find it easier to complete, along with other solutions, with sponsorship, as I don’t currently have paid work.
Hello all
I have found that this works:
[ext[London, England|./Places.html#London, England]]
Rob,
This is a relative address so the wiki needs to be in the same folder as the first.
On Tiddlywiki.com place this in a tiddler and use the editor preview and select the RAW HTML view (comes in the internals plugin) and you will see this;
[ext[London, England|./Places.html#London, England]]
is parsed into the following;
<p><a class="tc-tiddlylink-external" href="./Places.html#London, England" rel="noopener noreferrer" target="_blank">London, England</a></p>
You can copy/enter this directly in wikitext if you want, to change the destination address or target if you want. For example if you use target=places all links with the same target will open in the same tab, with a window name of places.
Regards