Some tiddlers have transcluded images, while some tiddlers have images in [img[]] format. I want to list all the images of both these formats and display them using a viewtemplate. But the above code is not listing the transcluded images.
You use delink before defining it. You should move it up in the $let widget
Your last filter run is an “else” filter run, so it won’t be evaluated unless other filter runs return no result. Remove the ~ at the start of the filter run.
But still the transcluded images are not being shown in the macy widget of macy plug in (which was the reason for creating this filter run). I have set up a demo here. Can you help me to find why its not working ?
The “image” tiddler you were transcluding also uses the [img[...]] format, so it’s not enough to to simply use <currentTiddler>transcludes[] — this will return the title of the transcluded tiddler, not its text content. Instead, you’ll need to get the text of each transcluded tiddler as well as the <<currentTiddler>>, then apply the same split/regexp processing to extract any relevant image links.