Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-03 Thread Felix Küppers
Hi Stephan, If jeremy accepts my pull request (which is based on this suggestion) you will be able to specify and access variables in the modal passed by the event mechanism. See: https://github.com/Jermolene/TiddlyWiki5/pull/1045 In my *fork* I already tested this. Example js invocation:

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-03 Thread Danielo Rodríguez
How are you calling your modals? I use modals for user input and creating new Tiddlers and it works nicely. For those things that I need the modal can access I use temporary tiddlers. Then I call the modal with some actions widgets that sets those temporary tiddlers to the values I want.

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-03 Thread Felix Küppers
Hi Danielo, thanks for your answer. I described my setup in the post above and also in the post below (see the screenshot). How would you do the following. (I understood Jeremy's answer as that it cannot be done, but maybe you have an idea). I want to create a tiddler that (1) contains an

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-03 Thread Jeremy Ruston
Hi Felix It's quite simple I'm afraid: $edit-text tiddler={{!!myfield}}/ It uses a transcluded attribute. The transclusion is specified as a text reference, in this case with the tiddler title omitted, which means that it defaults to the current tiddler. Best wishes Jeremy. On Mon, Nov 3,

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-03 Thread Felix Küppers
- - - Oh lord. now I totally confused two topics that I'm currently involved. My original problem was that I cannot reference a *modals* field. simply because it doesn't possess the fields. So I wanted to refer to the original tiddler via currentTiddler. Something like this: \define merged()

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-02 Thread Jeremy Ruston
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`

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-02 Thread Felix Küppers
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

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-02 Thread Felix Küppers
Just out of curiosity, is there no way this could be done? I mean: a edit-text reading its destination from a fieldvalue of the current tiddler. I love the API, but it sometimes hard to draw the line between what is possible and what is not in TW. -- You received this message because you

Re: [tw] [TW5] edit text does not accept macro output when macro contains transclude?

2014-11-02 Thread Stephan Hradek
Am Sonntag, 2. November 2014 22:58:19 UTC+1 schrieb Felix Küppers: *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