Thank you! This is working now. I didn't know the exact syntax for doing
<<__parameter__>> inside a filter, so that helped.
Also, why is the ~ in front of the title<currentTiddler> again?
On Saturday, December 21, 2019 at 2:20:06 PM UTC-6, Mark S. wrote:
>
> Try
>
> \define img_gallery2(target_tiddler)
> <$list filter="[<__target_tiddler__>!is[missing]]
> ~[title<currentTiddler>]">
> <div style="width: 33%; float: right;">
> <<single_image3>>
> <<add_gallery2>>
> </div>
> </$list>
> \end
>
>
>
> On Saturday, December 21, 2019 at 11:32:31 AM UTC-8, David Allen wrote:
>>
>> *I do not want a new plugin, so please don't suggest one!*
>> I have a macro as follows:
>>
>> \define img_gallery2(target_tiddler)
>> <div style="width: 33%; float: right;">
>> <<single_image3>>
>> <<add_gallery2>>
>> </div>
>> \end
>>
>> Right now, target_tiddler is not used. single_image3 and add_gallery2
>> both use text references for the currentTiddler variable (such as
>> {{!!images}} ).
>>
>> I want to expand this macro to set currentTiddler to the value of
>> target_tiddler only if target_tiddler is defined, but leave it alone
>> otherwise.
>>
>> Anyone have any suggestions?
>> *I do not want a new plugin, so please don't suggest one!*
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e1a14a6d-804e-49da-ad8f-f4a7a20fb3ea%40googlegroups.com.