I'm having some trouble with multiple transclusions in tiddlywiki causing unwanted behavior.
Here's my setup:
I have a number of image tiddlers that are formatted as follows:
Title: Image_Blah_1
Tags: image
Text: <img src={{!!img_url}} class="modal_image"/>
category: Blah
img_url: theimageurl
I have a second tiddler in which I'm trying to transclude the previous image tiddlers as follows:
Title: TemplateModal
Text: <$transclude tiddler={{!!theImage}}/>
theImage: Image_Blah_1
img_url: donotdisplaythis
What's happening is the transclusion of Image_Blah_1 into TemplateModal happens before the img_url reference is resolved in Image_Blah_1, so that the <$transclude> widget inserts the following into TemplateModal:
<img src={{!!img_url}} class="modal_image"/>
Which then becomes
<img src=donotdisplaythis class="modal_image"/>
What I'm trying to do is get it to display as the following:
<img src=theimageurl class="modal_image"/>
Does anyone know how to get this to work?