Some time ago @twMat made the vvery smart Richlinks-macro to display medialinks and links to websites like youtube and twitter in a direct and elegant way.
Since it still needed an Tobi Beer’s split operator which can now be replace by the on-board split filter, I thought it might be time for a relaunch. So let us start by uploading a first replacement of the macro that does not need additional filters (1.3 KB)
But I see further potential I would like to implement:
I would like to replace the dictionary tiddler by a listfield in each template in which the mediatypes and websites to apply it to listed.
I would like to have a viewtemplate, that applies the macro if a tiddler has a url in a “richlinks” filed.
.
I would be happy to contribute to this effort, I would like to combine it with a method I use called protocol links, when any field containing a value beginning with a protocol such as http:// or https:// … is presented as a link, add a richlinks view, fantastic.
I recently recalled fieldnames are much less restricted now, so we can use the fieldname to store the window.name/target and/or pretty name the link will open in, since it is the value that is used to detect its a link.
I am working on a method so such fieldnames do not “pollute the fieldname space”, with the “new field” dropdown.
Yeah, you’re probably right. It’s just that I constantly have sooo many ideas. I’m currently working on one I’ve polished for weeks that I think many people will appreciate (but which was sidetracked by DragTag the other day). But I like RichLinks, including the way I constructed it, so I’ll try to take a look at it over the coming weeks. (But before I’ve already promised someone I should fix a bug in NewTids and then there’s @Siniy-Kit 's project that must not be dropped… why don’t more people see that that is a super important project?)
I didn’t yet check out your file but I’m very happy to see contributions to it!
I made richlinks-realaunch which chooses the templates without dictionary just by searching a keyword in the title: Like in $:/richlink/img:jpg:jpeg:png:gif the keywords have to be preceded by a colon ( : )
I guess we need a template for the case where no template is defined… I have to think of this because like the original macro the new version digests the link in two parallel ways which makes it a little tricky for an emptyMessage solution.
There still is some work to do on some of the existing templates and of course it would be good to add templates for more sites so submissions uploaded here are very welcome
I just updated my version of richlinks
most tmeplate work fine, but I have difficulties to apply the simple IFrame for all Links where no template is identified. This macro: