Help transcluding field contents

Hi,

I have a series of tiddlers with a field ‘image’ containing the uri of the image.

What I’d like to do is to show all the images from the respective tiddlers.

The following transcludes everything from each tiddler and not just the images:

<$list filter=[tag[A]has:field[image]]><$transclude/></$list>

So how do I just get the images - I’ve had a look in the docs, but can’t work it out.

Thanks
Jon

Try this:

<$list filter="[tag[A]has:field[image]]"><$image source={{!!image}}/></$list>

Note: you should always put quotes around the filter="..." parameter value to ensure that it will work even if the filter syntax contains spaces.

-e

1 Like

That works Eric and grateful for the pointer about the quotes.

Many thanks
Jon