[TW5] action-createtiddler help / finding res

60 views
Skip to first unread message

Tim Waclawski

unread,
Jan 1, 2018, 6:18:31 PM1/1/18
to TiddlyWiki
Hi,

I'd like to use the create tiddler action to create a new tiddler with a name and have it open in the story river. 

The ActionCreateTiddlerWidget tiddler on tiddlywiki.com suggests: 
  • The new tiddler is not automatically displayed in the story river
  • The title of the new tiddler is made available for subsequent operations
How does one make use of the name of the new tiddler for future operations? 

I'm generally having trouble finding examples of these actions being implemented and resources to learn the syntax for beginners. Any help would be appreciated.


ste...@gmail.com

unread,
Jan 1, 2018, 6:47:58 PM1/1/18
to TiddlyWiki
Hi,

You could try this code:

<$button>
<$action-createtiddler $basetitle="My New Tiddler" $savetitle="!!tiddler-title" text="This is the Tiddler text."/>
Create Tiddler!
<$action-navigate $to={{!!tiddler-title}}/>
</$button>

The "$savetitle" attribute makes the title of the new tiddler available in the field "tiddler-title", and the ActionNavigateWidget opens it. 

Cheers,

Stef
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages