Hi Mauloop

The problem here is that the “btn” variable is defined within the body of the 
“My Modal” tiddler which means that it only accessible within that tiddler, and 
so isn’t accessible when the footer is rendered.

Best wishes

Jeremy

> On 30 Aug 2018, at 21:25, mauloop <[email protected]> wrote:
> 
> Someone can help me to understand this behaviour?
> 
> Let's have the following tiddlers:
> 
> title: My Tiddler
> 
> <$button>
> My Modal
> <$action-sendmessage $message="tm-modal" $param="My Modal" />
> </$button>
> 
> 
> title: My Modal
> footer: <<btn>><$button 
> message="tm-close-tiddler">{{$:/core/images/close-button}}</$button>
> 
> \define btn() <$button 
> message="tm-close-tiddler">{{$:/core/images/done-button}}</$button>
> 
> <<btn>>
> 
> I should have two buttons in the footer of My Modal, a "Done" button and a 
> "Cancel" button, but the first one, that is defined using a macro, does not 
> appear. Just the "Cancel" button is visible.
> 
> I put the same macro in My Modal body as well, just to test that it works. I 
> knew that footer content is wikified and I see that it really is, since the 
> Button widget used for the "Cancel" button works. It looks like there are 
> some issues parsing a macro included in the footer field. Or maybe the only 
> issue it's me.
> 
> BTW: 
> Using a Macrocall widget does not solve. 
> I tested the described scenario on tiddlywiki.com
> 
> Any suggestion? Thanks,
> 
> )+(au
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/39dbc364-8c92-40f7-8d33-a7e0d3360d4a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/39dbc364-8c92-40f7-8d33-a7e0d3360d4a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/E8BA901E-480F-41A2-AAB1-12F0132678FB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to