Re: [tw5] [TW5] Modals and footer: macros don't work in footer (maybe)

2018-08-31 Thread Jeremy Ruston
Hi Mauloop > Thanks for the explanation, Jeremy. I don't understand the rendering > mechanism very well, and this is the cause of most of my mistakes. I have to > study hard :((( > > The previous examples was just to show the behaviour I was investigating, but > it was almost useless. Here is

Re: [tw5] [TW5] Modals and footer: macros don't work in footer (maybe)

2018-08-31 Thread Jeremy Ruston
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 wrote: > > Someone

[tw5] [TW5] Modals and footer: macros don't work in footer (maybe)

2018-08-30 Thread mauloop
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" /> title: My Modal footer: <><$button message="tm-close-tiddler">{{$:/core/images/close-button}} \define btn()