Hi Stobot You should be able to do this with the <$linkcatcher> widget; it lets you trap navigations (ie clicks on links) and runs custom logic in an action string:
https://tiddlywiki.com/#LinkCatcherWidget <https://tiddlywiki.com/#LinkCatcherWidget> Best wishes Jeremy > On 23 Mar 2021, at 10:41, Stobot <[email protected]> wrote: > > I had an idea today and am trying to figure out how difficult it would be to > do. Say we use TiddlyWiki for project management (as I do), we will be > writing "journal" type tiddlers and using as many links as possible for > future reference. > > For example: "On [[2021-03-23]] I had lunch with [[Bob Ross]] and talked > about [[Painting]] and his favorite place to paint which is [[France]]" > > Now, I know that: > [[2021-03-23]] is a tiddler that is tagged "Date" > [[Bob Ross]] is a tiddler that is tagged "Contact" > [[Painting]] is a tiddler that is tagged "Hobby" > [[France]] is a tiddler that is tagged "Place" > Is there somewhere that I can insert logic to add to the logic of the > internal link that is ultimately rendered? For example, for a "Contact", I > might have "profilepic" in a field for [[Bob Ross]], and on the tooltip/hover > I might want to display his picture, for the date, maybe a calendar tooltip, > and for Hobby, maybe a list of other hobbies, or maybe recent entries also > related to Painting. > > I could use macros instead of links and insert logic there - such as use > <<mylink "Bob Ross">> and in the macro check for the tag and insert all of my > stuff, but then I can't use things like CompText, backlinks probably wouldn't > work etc. > > Any ideas? > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/7158dcda-b8d3-44cd-afb5-fa099865f448n%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/7158dcda-b8d3-44cd-afb5-fa099865f448n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/BA33FE0E-02EB-4177-B8A0-1E771974FC64%40gmail.com.

