@Rich,

I have finally updated the linkimg with working gallery and navigation 
examples now...

http://tb5.tiddlyspot.com/#linkimg

*Note:* I have also renamed the macro from...

*$:/macros/linkimg*

to...

*$:/.tb/macros/linkimg*

...for now.


@ Jeremy,
 

> That syntax will never be supported because there's already a way to do 
> things like that with macros:
>
> \define myMacro()
> [img[$(currentTiddler)$.jpg]] 
> \end
>
> Macros work via textual substitution, which allows you to stitch fragments 
> of wikitext syntax together.
>

Ahhh!

First things first, your above macro does provide a means to use an image 
tiddler named after that target tiddler, indeed.
So, that's a workable solution.

Now, let's get to the bottom of what was causing confusion before.
I tried to use an icon that was already specified in a field of those 
target tiddlers, e.g.:

*$:/core/images/globe*

Now, when I open that svg, the first thing I notice is that it does *not* have 
a content-type of *image/svg+xml*, which I presumed it had. Instead it has 
a tag of *$:/tags/Image*.

The second thing I notice is that this image can only be used via 
transclusion, but not via *[img[some_svg]]*. Albeit understandable, after 
all, this is what caused the confusion and it's actually the reason why I 
thought my idea didn't work... but now I know it actually does.

Another solution I would finally prefer is one where I have a reference to 
an actual image tiddler in a field at a target tiddler, e.g. a menu item. 
That, I have still not managed to achieve, e.g. defining the field 
*img=Jack.jpg* at GettingStarted <http://tb5.tiddlyspot.com/#GettingStarted> 
and 
then using...

\define getImg()
$(currentTiddler)$!!img
\end

...in combination with linkimg

Best wishes, Tobias.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to