Hi Felix
> Concluding Question: Why isn't the transclusion parsed when used as input
for edit-text?
Transcluded attributes on HTML elements or widgets are not wikified; the
attribute gets the raw value of the transclusion. This holds true for
transclusion of variables with `attribute=<<variable>>` and transclusion of
tiddler fields with `attribute={{title!!field}}`.
The reason is that wikification is relatively slow, and would complicate
the dependency tracking for the refresh mechanism. I think that most of the
time the wikification would not be what we want anyhow.
Can you outline the problem you're trying to tackle?
Best wishes
Jeremy.
On Sun, Nov 2, 2014 at 9:20 PM, Felix Küppers <[email protected]>
wrote:
> Hi,
>
> consider the following:
>
> *Setup:* A tiddler named "test" with a field "ref" that contains the
> value "out"
>
> \define getVariable(field)
> <$transclude tiddler=<<currentTiddler>> field=$field$ />
> \end
>
> <<getVariable "ref">>
> the above works: it prints "out", which is the field value of the field
> "ref"
>
> <$edit-text tiddler=<<getVariable "ref">> field="text" type="text" tag=
> "input" default=""></$edit-text>
> the above does NOT work: while writing text it prints the text into a
> tiddler named "<$transclude tiddler=test field=out />". it should print
> into a tiddler named "out", which is the return value of getVariable as
> shown above.
>
>
> on the other hand this would work.
>
>
> \define getVariable()
> out
> \end
>
> <$edit-text tiddler=<<getVariable>> field="text" type="text" tag="input"
> default=""></$edit-text>
>
> *Concluding Question:* Why isn't the transclusion parsed when used as
> input for edit-text?
>
> What am I missing?
>
> Thanks
> Felix
>
>
> --
> 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 http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>
--
Jeremy Ruston
mailto:[email protected]
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.