Hi Sylvian,

It's relatively simple, but needs some TW background ;)

Create a tiddler named eg: globalImageMacro and *tag *it with: $:/tags/Macro 
to make it a global macro

content: 

\define imageFullPath(image, tooltip, path)
[img[$tooltip$|$path$$image$]]
\end

\define iLink( image, tooltip:"image", pathConfig:"imagePath")
<$macrocall $name="imageFullPath" path={{$pathConfig$}} image="$image$" 
tooltip="$tooltip$"/>
\end


Then create a tiddler named: imagePath   with your base path. eg: 

for a network share: 
file:\\\\\COMPUTER_NAME\Users\Mario\Pictures\2010-10\
see: 5 bachslashes !!!

same computer absolute path
file:\\Users\Mario\Pictures\2010-10\

relative path as a subdirectory to the tiddlywiki.html file. 
.\images\

*The "backslash" at the end is important!!*

-----------

To get the image use: 

<<iLink "my image with spaces.gif">> 

The default tooltip is "image" if you want to change it use: 

<<iLink "my image with spaces.gif" tooltip:"my tooltip">> 


The default path config tiddler is: imagePath 
If you want to change it use: 

<<iLink "my image with spaces.gif" tooltip:"my tooltip" 
pathConfig:"otherImagePathTiddler">> 


I did test this on my computer. So it should work :)
-mario

-- 
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