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?
--
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/97c9fb44-54e6-4c27-8638-686f8bda2a5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.