There are different approaches. The transclusion widget transcludes the
text field by default or an image if it is defined with _canonical_uri.
Using _canonical_uri, you can use an external image as though it were local
in the TW.
The filter syntax expects to find a match for any tiddler whose parent
field contains the same name as the current tiddler. Since you don't have a
$:/structurestab field that was a non-starter. If I changed tiddler 1,
putting "$:/structurestab" into the "parent" field, and copying and pasting
the contents of the picture field into a _canonical_uri field, and changing
the type of the tiddler to image/png, then this code seems to work:
<div class="my-gallery">
<$list filter="[all[tiddlers]field:parent<currentTiddler>] +[sort[title]]">
<span title=<<currentTiddler>>>
<a target="_blank" href={{!!_canonical_uri}}><$transclude/></a>
</span>
</$list>
</div>
I used a standard anchor to create the external reference. It might have
been possible to use [ext[]] syntax, but I knew this would work so went
with it.
HTH
Mark
On Sunday, August 27, 2017 at 10:09:02 AM UTC-7, Tom Bardout wrote:
>
> Thanks Mark,
>
> Unfortunately, it doesn't display anything either :/
> Since my tiddlers are not photos, they won't display. I wish to have
> tiddlers with a picture field linking to an external image.
>
> <http://goog_1965494601>
> T <http://goog_1965494601>ake a look at my setup:
> http://test00000.tiddlyspot.com/
>
> Le dimanche 27 août 2017 18:38:43 UTC+2, Mark S. a écrit :
>>
>> There were several errors in the filter. But that's all right -- I made
>> several errors trying to fix it. It's easy to mess up, especially when
>> you're counting braces. Also, I'm pretty sure you can't put a widget into
>> the middle of a span tag, but if you could it would have to be closed
>> (<$link/>).
>>
>> The <$link> needs to be wrapped around whatever you want to link to.
>> Here's what I came up with:
>>
>> <div class="my-gallery">
>> <$list filter="[all[tiddlers]field:parent<currentTiddler>]
>> +[sort[title]]">
>> <span title=<<currentTiddler>>>
>> <$link><$transclude/></$link>
>> </span>
>> </$list>
>> </div>
>>
>> HTH
>> Mark
>>
>>
>> On Sunday, August 27, 2017 at 4:16:25 AM UTC-7, Tom Bardout wrote:
>>>
>>> Hi,
>>> Is there a way to turn the code used here
>>> <http://tiddlywiki.com/#ImageGallery%20Example> to display links to
>>> other tiddlers as images?
>>> It would be great to also have the title of the linked tiddler under
>>> each image.
>>>
>>> For now, this is what I have but it doesn't display a thing and if it
>>> did, I suppose it wouldn't be in picture form...
>>>
>>> <div class="my-gallery">
>>> <$list filter="[all[tiddlers][field:parent<currentTiddler>]
>>> +[sort[title]]]">
>>> <span title=<$link><<currentTiddler>>
>>> <$transclude/>
>>> </span>
>>> </$list>
>>> </div>
>>>
>>>
>>>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/facd191c-539f-44ca-b9d6-620f546bd701%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.