> var URL=config.macros.attach.getAttachment("TiddlerName")
> Then, you can construct the appropriate HTML, like this:
>   star='<img src="'+URL+'" onmouseover="highlight(this.id)" ...

addendum:

If you want installation of AttachFilePluginFormatters to be optional,
you can write something like this:

var URL="http://.../filename.jpg";; // hard-coded fallback/default
if (config.macros.attach)
   URL=config.macros.attach.getAttachment("TiddlerName");

If the plugin is installed, it will use attachments, otherwise it will
fall back to using the hard-coded URL.

enjoy,
-e


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to