{{title of your image tiddler}}Hi.
I have the same issue of peter but in my case I'd like to bring this image from a webpage... Like I'd normally do inside a tiddler with [img[https://mypage/img.png]]. Is it possible to do? Or does it work only if I import my image to TiddlyWiki?
_canonical_uri solves the problem of the icon with an external image. However, I'd like to find a way to do it in a more automated way because my main goal is to integrate TiddlyWiki with another external web application that I'm developing...
Basically, I have an API of images with all tiddlers' titles... The address is something like the following:
http://localhost:9999/myapi/images?name={{{tiddler's title is here}}}
For me it would be great if I could add this icon directly on the .tid file. I imagine something like:
created: 20180624045100371Automating the _canonical_uri seems a little hard for me because I'd have to create a new different tiddler for each image. Besides that, I'd still have to find a way to fill the icon field in an automated way (which I don't know if it's a simple thing to do)... Do you see alternative solutions to this problem?
But for this solution I'd need two different things:Getting the title of the tiddler from within it and using it as a parameter for my linkhttp://localhost:9999/myapi/images?name={{{title}}}] on the first line of all new tiddlers that are createdFor me it would be great if I could add this icon directly on the .tid file...
Is it possible to do something like that on TiddlyWiki? For me that would be perfect because it'd be a simple way of having an icon that depends on the title of the tiddler that is being created...
Automating the_canonical_uri seems a little hard for me because I'd have to create a new different tiddler for each image. Besides that, I'd still have to find a way to fill the icon field in an automated way(which I don't know if it's a simple thing to do)... Do you see alternative solutions to this problem?
A different approach that I've thought would be giving up of the "icon besides the title idea" and just putting it on the first line of the tiddler...
But for this solution I'd need two different things:
Getting the title of the tiddler from within it and using it as a parameter for my link- Configuring TiddlyWiki to include [img[
http://localhost:9999/myapi/images?name={{{title}}}]on the first line of all new tiddlers that are createdAre those two things possible?
\define myIcon() <img style="float:left; height:3em;" src="http://localhost:9999/myapi/images?name=$(currentTiddler)$" /><<myIcon>>
I've just tested the second solution here and I have to say that it works perfectly for what I'm doing :)
2- The last curiosity is just a small detail that wouldn't be a problem if not possible... But considering that my keywords are words that begin with ":" on edit mode, would it be possible to force tiddlywiki to make all words that begin with ":" to be bold on the title or change their color? Is something like this possible in TiddlyWiki?
<$view field="title" /><$list filter="[{!!title}split[ ]]" variable="word"> <$set name="chars" filter="[<word>split[]]"> <$list filter="[enlist<chars>first[]match[:]]" emptyMessage=<<word>> > @@color:green;font-weight:bold;<$text text={{{ [<word>split[]rest[]join[]] }}} />@@ </$list> </$set></$list>2- The last curiosity is just a small detail that wouldn't be a problem if not possible... But considering that my keywords are words that begin with ":" on edit mode, would it be possible to force tiddlywiki to make all words that begin with ":" to be bold on the title or change their color?