Just a reminder that, although maybe a little odd-looking, all kinds of neat filtering can be setup in a tiddler link (i.e. for tiddler lookup from outside a TiddlyWiki) to help prevent link rot.
For example: https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#: *[uid[2]]*%20*[match[UID-Permalink%20Project]]* <https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#:[uid[2]]%20[match[UID-Permalink%20Project]]> The reason for that kind of link is to try to make sure that the link, posted in some forum, and/or put in a blog, and/or you-name-it, has the best chance of standing the test of time. The beauty of that kind of link is that, me having this habit of continuously tweaking my tiddler titles, the link to the tiddler should always work as long as I never muck with the uid field (that would have to be a pretty bad accident.) The best of all worlds in a way. A stable link via the UID, and a decent description via tiddler title, even if the title wound up changing. If we wanted to handle link rot, we could: https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#: [uid[*3*]]%20[match[UID-dPermalink%20Project]]%20*+[else[error404?]]* <https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#:[uid[3]]%20[match[UID-dPermalink%20Project]]%20+[else[error404?]]> Yeah, verbose URL's, but when one wants to minimize the risk of link rot and/or handle link rot ... So anybody can share a link to a tiddler with whatever kind of filtering in the URL that makes the best sense for him/her and how his/her TiddlyWiki is organized. On Thursday, July 22, 2021 at 12:14:00 PM UTC-3 springer wrote: > Tones, > > This again is a place where different users may have different needs. I > love the fact that if I share a permalink, the #TiddlerTitle at the end is > not an indecipherable UID, but something recognizable and meaningful to the > recipient (and even to myself, going back into my emails and recognizing > what I shared). > > And as much as you may "choose my tiddler names well enough when needed so > they need not change in future", renaming a tiddler is not always a matter > of realizing that you failed to have foresight the first time around. (My > reason for invoking the Bombay to Mumbai change -- or Bruce to Caitlin if > you prefer -- is that the world *about* which we take and share notes does > not always cater to our desire for stability. ;) > > I do realize that even without changing relink, we could mitigate obsolete > permalinks (when we are aware of them) by setting up a ViewTemplate that > works with a "formerly" field (or maybe just with a alias and aliases > field), to transclude or redirect when the old permalink lands on an > obsolete tiddler. > > -Springer > On Wednesday, July 21, 2021 at 9:17:10 PM UTC-4 TW Tones wrote: > >> Springer et al, >> >> Forgive me for repeating myself, although a lot of interesting ideas, I >> believe these to be *non-problems.* >> >> A simple solution is available here. an Example would be an alternate >> button to simple permalinks, I think someone else used a share icon. When >> clicking this on a given tiddler, it would assign a next number to a field >> in the tiddler (basically issuing a unique value field - not a UID or >> serial or GUID) then use this field/number to uniquely identify the tiddler >> shared, so it does not matter if it's title is renamed. Then generate a url >> that instead searches for any (but only one) tiddler with that field value. >> >> If *anyone asks* I will build this share button soon. >> >> That is if someone wants to publish a robust permalink for a tiddler >> who's title may change they use a built for purpose alternative to >> permalinks. Perhaps the existing name permalinks is misleading, perhaps >> they should be impermalinks. >> >> Here is a working example >> a tiddler with the "permalink" field=1 >> the url wiki-url.html#:[permalink[1]] >> In the wiki <a href="wiki-url.html#:[permalink[1]]">Open target</a> this >> can be dragged to bookmarks/favourites >> >> However I personally choose my tiddler names well enough when needed so >> they need not change in future, and if I am publishing a link somewhere it >> is to access specific content. the link has a purpose, and once someone has >> the link the purpose is fixed in time and should always honour its original >> share. >> >> A version of the above method where the link filter >> is [has[permalink]last[]] will always link to the largest permalink value, >> so one is sharing a link to the latest permalink tiddler or post. >> >> Another supportive trick is to hide the field from the editor with a >> tiddler of the form $:/config/EditTemplateFields/Visibility/fieldname >> eg $:/config/EditTemplateFields/Visibility/permalink with a value of hide >> thus once set you have to go out of your way to alter the permalink >> value, that is its more permanent. >> >> Further developments (optional reading) >> >> - Since the addition of the unused title operator, it is possible >> (more to the point easier) to use this to generate a unique and >> incremented >> tiddler title and serial number. >> - Rather than shadow tiddlers I am using this not only to generate a >> tiddler Serial Number (TSN) but a "ghost tiddler" that follows any >> tiddler >> and provides a way to save metadata for any tiddler or field there in >> (regardless of the title) >> - My only issues left are >> - Finding a way to generate/assign such TSN and Ghost tiddler in >> bulk. >> - rebuild a parallel solution - system serial number, to assign a >> serial number to core and shadow tiddlers without touching them >> - Actually I have found you need only assign serial number where to >> need them, say for these permalinks or compound tiddlers, that is with >> subtiddlers that use the serial number for the parent rather than the >> title >> or a tag. >> >> Regards >> Tones >> >> On Thursday, 22 July 2021 at 06:50:01 UTC+10 springer wrote: >> >>> About obsolete permalinks: >>> >>> Surely a variant of the relink plugin could help maintain bread-crumbs >>> for obsolete links: >>> >>> Whenever relink does its thing, have it offer to create a >>> dictionary-tiddler entry pairing old-name and new-name; then have a >>> filter-condition ViewTemplate element show up at the bottom of old-name >>> tiddlers, where the new-name tiddler is transcluded (or linked-to) -- >>> perhaps pre-pending a note explaining that the old "Bombay" is now called >>> "Mumbai"... >>> >>> At first, I was worried about the case where I change tiddler title from >>> "Bombay" to "Mumbai" and then later generate a different one called >>> "Bombay" -- but there, too, I might be interested in seeing such a >>> ViewTemplate addition! After all, if I ever had shared a permalink to >>> #Bombay, some signposts around the changing namescape could be useful! >>> >>> -Springer >>> >>> On Tuesday, July 20, 2021 at 9:09:07 AM UTC-4 [email protected] wrote: >>> >>>> This is such an awesome thread. >>>> >>>> On Tuesday, July 20, 2021 at 9:04:07 AM UTC-3 Soren Bjornstad wrote: >>>> >>>>> *Walt,* the thing that bugs me most about the “immutable title/ID” >>>>> idea is that unless your notes are also going to be immutable, the >>>>> *content* of a note can still change so much as to make the reference >>>>> not effective anymore. So I don't see much point in bothering, as long as >>>>> you can avoid having links break. Presumably the thing you were looking >>>>> for >>>>> won't move so far away from the updated note that you'll be unable to >>>>> find >>>>> it, anyway (probably not more than one link away). >>>>> >>>>> >>>> Hence why I have an awful lot of love for relink. I would have a rough >>>> time without it. No broken (internal links) with Relink. >>>> >>>> >>>>> It is a good point on external links breaking, though. It would be >>>>> cool if you could set up redirects within TW, so that you could at least >>>>> have an incoming link to an old title go somewhere somewhat relevant. I >>>>> guess you could just leave the old title with a link to the new one, but >>>>> without an obvious way to distinguish redirect tiddlers from other >>>>> tiddlers, they would probably get in your way and make you think they >>>>> were >>>>> the “real” tiddlers all the time. >>>>> >>>>> >>>> Link rot. Redirects is a possibility. I much prefer UID fields and >>>> providing links to a Tiddler in some TiddlyWiki with a "UID" reference. >>>> (related thread: A Prototype of UID's for stable permalinks >>>> <https://groups.google.com/g/tiddlywiki/c/l2Mwu3pOAXw/m/fuvWrwpDBwAJ>) >>>> >>>> So if I want to provide folk with a link to a specific tiddler in some >>>> TiddlyWiki, in a way that allows me to change the tiddler title >>>> willy-nilly >>>> without breaking the link, I would give folk this: >>>> >>>> >>>> https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#:[uid[2]] >>>> >>>> <https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#:[uid[2]]> >>>> >>>> For some reason, I prefer this than setting up redirects. >>>> >>>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/42838898-b90b-497b-95a9-4bafed25f969n%40googlegroups.com.

