Hi Matt

I use Eric's WikifyPlugin, ImageSizePlugin and HideWhenPlugin for
this:

<div class='someclass' macro='showWhenTagged SomeTag'>
                <div class='someclass' macro='wikify [img(12em+,)[%0|http://
someurl.com/SomeDirectory/%0.jpg][http://someurl.com/SomeDirectory/
%0.jpg]] title@here '>
        </div></div>

I recon it should be possible to do it without any additional plugins
via the tiddlermacro - like this:

SomeTiddler

<html><img src="http://someurl.com/SomeDirectory/$1.jpg"; style="max-
height: 12em; max-width: auto;" /></html>

and

ViewTemplate

<div class='someclass' macro='tiddler SomeTiddler with:
{{tiddler.title}}'></div>


Cheers Måns Mårtensson

On 31 Mar., 00:15, Mat <[email protected]> wrote:
> Returning a bit late here. Anyway;
>
> @anyone
> merely putting in <img src="http://... width="x" height="y"> into
> ViewTemplate works.
> How can I make the src contain a generic reference to the current tiddler
> title?
>
> @Tobias
> - your plugin looks interesting but frustratingly I'm not skilled enough to
> understand how to make it work. However, even if I was, do I understand it
> correctly that
> a) I must manually include a specification for each instance for when I
> want a file to show up, no? That would kind of go against my original idea
> to have the image appear automatically.
> b) the filename is specified and it is located in the very text field of
> the tiddler (unless it is a field)?
>
> Thank you!
>
> <:-)
>
>
>
>
>
>
>
> On Saturday, February 16, 2013 3:17:52 AM UTC+1, Tobias Beer wrote:
>
> > Actually, you can simply use a plugin I have just written:
> >http://get.tiddlyspace.com
>
> > If you put this in your ViewTemplate...
>
> > <div macro='get ??thumb plain'></div>
>
> > ...it will try to fetch the field 'thumb' from a tiddler and wikify the
> > contents.
>
> > Or you could use....
>
> > <div macro='get ##thumb plain'></div>
> > <div macro='get ::thumb plain'></div>
>
> > To do just the same while fetching from a (hidden) section or slice
> > instead...
>
> > ...all assuming that the field, section or slice contained the required
> > image markup.
>
> > Cheers, 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to