See Getting backlinks from other fields, specifically list fields

Folks, I have discussed the reason for this request in a few discussions of late, however I will make a simple request here, and I hope whoever reads it may understand the current mechanisiums in the core to be able to guide me on finding a solution.

Currently if one enters the following in the text field of a tiddler CamelCase [[link me]] with enable “Enable automatic CamelCase linking” active. The tiddlywiki core finds these and these titles become found using links, backlinks and missing tiddler lists.

Getting backlinks from other fields, specificaly list fields

I would like to be able to rule in one or more additional fields such as list, flag-list or an additional multiline text field such as notes (if it existed) for this treatment. Its fine if all that is returned is the title of the tiddler in which the listed title is mentioned, which is all that the existing method does for the text field.

More advanced;
Perhaps in future we could find the tiddlername/fieldname the title is specified in or lookup the [[pretty link|for tiddlername]] with backlinks all the better, but for now all I want is the titles in one or more additional list fields to be added to the tiddler store, missing tiddlers, links and back links.

  • Can you help me?
  • Even if only to identify where this happens in the core?

[Edited] these are what TiddlyWiki documents as “hard links”

Ideas;

  • A new widget that lets us enrole other titles (found in list fields) into the title store, caches, missing and back links, through a global procedure. Ideal can be applied to all instances of a given fieldname in the wiki.

I think the relink-plugin is needed to handle more advanced usecases as you describe.

The problem is. – It’s complex and performance sensitive. Backlinks and Backtransclusions use the cached parse-tree to find TW wikilinks. Fields are not parsed upfront, since we do not know if they should be. So that has a high risk to be slow.

IMO @Flibbles has done an incredible job with the relink plugin.

2 Likes

Well, Yes and no. If you think about it all tiddler text fields are examined to find backlinks. I only want to nominate one or more other list fields, if they exist to also have this treatment. Sure some of these could be long lists, but they need to be defined and can be limited to just a few occurances, unlike all occurances of text fields.

A similar concern has arisen a few times, I would like to enrole some extra fieldnames to be used to;

Let us let the designer submit to the “cached parse-tree”?

Based on what others have said, and in someways due to a lack of responce to my request on this thread, I am now investigationg how I may build the equivalent or a parallell system to missing, links, backlinks which I think I can mostly achive through a set of functions. Even the caching can be achived through a function as a list into tiddler titles in a nominated list field.

Just an update, thanks @pmario the relink provided configuration, that allows you to add a list field (of titles) such as flag-list does effectivly result in relink specific orphans and missing tiddlers, based on the content of the nominated list fields. These can also be listed using the relink provided operators documented here Relink — flexibility when relinking renamed tiddlers which is a good alternative to the request in this topic.

However I do think it would be a good feature of tiddlywiki core to be able to enrole other fields than the text field into this process.

  • An imprtiant part of my argument is that enrolling another field to be trweated the same is by definition likely to be smaller in number and size than doing so for the multiline text fields. I think it unlikely to result in any performance issues that could not be done with the existing text fields.

For example;
{{{ [[Glossary]relink:references[]!is[system]sort[]] }}} will find and list all titles mentioned in the registered flag-list field (and others).

However;
Imagin I had a data tiddler with a key and value, the key or value could contain titles. Imagin if i could enrole those titles then I other opportunities will arrise.