Close Tiddler / Open Tiddler on Button Press

48 views
Skip to first unread message

lber...@gmail.com

unread,
Oct 21, 2018, 8:52:32 PM10/21/18
to TiddlyWiki
I am trying to code a button press to Open a New Tiddler and Close the Tiddler in which the button is shown, but having issues with the syntax of the close Tiddler.
The codes follows below.

TiddlyWiki is configured to open the {{Initial Page}} tiddler on opening, on which the below code is located (with Button Displayed).

The code below successfully opens the {{Introduction}} tiddler upon button press, but does not close the {{Initial Page}} tiddler (which is the action that I seek)
Documentation includes Param which is supposed to indicate
What am I missing??
Thanks much,  Lee.

<$button >
<$action-navigate $to="Introduction"/>
<$action-navigate $tm-close-tiddler="Initial Page"/>

I ACCEPT ABOVE AGREEMENT

</$button>

Eric Shulman

unread,
Oct 21, 2018, 10:40:03 PM10/21/18
to TiddlyWiki
On Sunday, October 21, 2018 at 5:52:32 PM UTC-7, lber...@gmail.com wrote:
The code below successfully opens the {{Introduction}} tiddler upon button press, but does not close the {{Initial Page}} tiddler (which is the action that I seek)
Documentation includes Param which is supposed to indicate
What am I missing??

The first widget call is correct... "$action-navigate".. but the second widget should be:

<$action-sendmessage $message="tm-close-tiddler"/>

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals
Reply all
Reply to author
Forward
0 new messages