Oops, I was working on a tablet and typing in the small wedge of space it 
gave me. Lost the "\end". This works on my system:

\define imageit(image:"image.jpg" path:"TW-Images/2017/")
<a href="$path$$image$" target="new"><img src="$path$$image$" width="25%" 
height="25%" /></a>
\end

Note that the default path must have a final forward slash on the end. Yes, 
this is a replacement for the previous macros.

Good luck!
Mark

On Sunday, December 17, 2017 at 1:58:55 PM UTC-8, Jon wrote:
>
> Hi Mark,
>
> Do you mean using this macro alone, instead of what's gone before?
>
> In which case I put it into a tiddler, changed your example folder path, 
> tagged it with $:/tags/Macro and in a separate tiddler inserted <<imageit 
> "Photoname.jpg">>
>
> However, no luck. What I did notice though is the macro tiddler produced a 
> thumbnail which wanted to find...ImageFolder/$path$$image$. and the other 
> tiddler didn't show anything.
>
> Cheers
> Jon
>
> On Sunday, 17 December 2017 20:57:31 UTC, Mark S. wrote:
>>
>> This should do literally what you want:
>>
>> \define imageit(image:"image.jpg",path:"TW-Images/2017/")
>> <a href="$path$$image$" target="new"><img src="$path$$image$" width="25%" 
>> height="25%" /></a>
>>
>> BTW, I have a variation of Tobias' macro that allows me to configure the 
>> image path with a drop-down selection of paths. So it's easier to hop 
>> between platforms. At least in theory.
>>
>> -- Mark
>>
>>
>>
>>
>> On Saturday, December 16, 2017 at 11:42:55 PM UTC-8, Jon wrote:
>>>
>>> Hi,
>>>
>>> This macro provided by Mark S in an earlier post 
>>> <https://groups.google.com/forum/#!topic/TiddlyWiki/Klz78UyX_mI> will 
>>> give a clickable thumbnail image which will then go to full size in the 
>>> browser. Inserting the macro in a tiddler and then tagging it with 
>>> $:/tags/Macro 
>>> will then, of course, make this a global effect for all photos in the wiki 
>>> eg. <<imageit "PictureFolder/picture 1.jpg">> (the quotes around this 
>>> part "$image$" now allows for a gap in the picture file name).
>>>
>>> \define imageit(image:"image.jpg")
>>>> <a href="$image$" target="new"><img src="$image$" width="25%" height=
>>>> "25%" /></a>
>>>> \end
>>>>
>>>> e.g.
>>>>
>>>> <<imageit "images/google_drive.png">>
>>>>
>>>>
>>>>
>>> I think this is brilliant, and I'm going to apply it retrospectively to 
>>> all the pictures in my wiki.
>>>
>>> Whilst I'm at it, I'd also like to incorporate a global folder path for 
>>> external images <http://tobibeer.github.io/tb5/#External%20Image%20Path>
>>> .
>>>
>>> So the question is, how do I join these two macros together?
>>>
>>> Thanks
>>> Jon
>>>
>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b561540d-a6f7-4abb-8850-b9555e5771b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to