Thanks, Jed. I'll take a deeper look later at the thread you linked to
(there is a lot to read and I-m not comfortable with English).
I tried too make my question simple, but the real scenery is little bit
more complicated.
The (parametrized) transclusion I need stand within the body of two nested
list widgets, that sets the tiddlers and the fields to be transluded, which
in turns are concatenated using a wikitext macro. I pass variable to the
macro using the syntax:
{{$(currentTiddler)$!!$(field)$}}
and everything works fine.
But when I try to move all of this code into a a macro tiddler (tagged
$:/tags/Macro) the $(currentTiddler)$ value is empty. Forcing the list
widget with a non default variable name does not solve.
I found that using <<currentTiddler>> instead of $(currentTiddler)$ works,
but I cannot use this syntax within curly brackets.
I ended with this workaround:
<$set name=v value=<<str """<$transclude tiddler=<$1$> field=<$2$> />""" """
<r>""" """<i>""">> >
<<v>>
</$set>
Where:
- r and i are the variable set by the containing list widgets
- str is the name of the concatenating macro
It works but I am looking for something better (simpler).
--
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/ede2f052-3d37-4b6e-b9e5-d1c1399c558e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.