Hi Jeremy,

that was an ultra quick response :) Thanks for clarifying this

Ok, I just read your remark on my pull request. This kind of implementation 
would solve my issue i'm trying to solve here.

*Anyhow:* I was trying to solve the issue that if I have access to a 
<<currentTiddler>> variable in the modal, (as proposed by my pull request), 
how could I then access the variables of the underlying tiddler. Well, I 
would need to combine the *title* and the *fieldname* of the tiddler and 
return the transclude. But from your comment I conclude now: I can't :(

Or maybe with the set widget creating variables that are accessible in the 
inner?

Just out of curiosity, is there no way this could be done?

Regards felix


 

On Sunday, November 2, 2014 10:29:34 PM UTC+1, Jeremy Ruston wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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] <javascript:>
>  

-- 
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.

Reply via email to