How to create a tiddler that opens in View(?)Saved(?) mode not Edit mode

35 views
Skip to first unread message

Sheridan Price

unread,
Dec 20, 2021, 1:16:10 PM12/20/21
to TiddlyWiki
Greetings;

I have journal and regular tiddlers that have check boxes and text edit boxes in the text field. It is not necessary for the user to see or access the text field in edit mode and in fact confuses things.

I would like to have these tiddlers open in the already saved condition i.e. not in edit mode.

I have tried adding:

<$action-sendmessage $message="tm-save-tiddler" title=<<tiddlerTitle>> />

to the $:/core/ui/Actions/new-tiddler after the already present: 
:
<$action-sendmessage $message="tm-new-tiddler" title=<<tiddlerTitle>> text=<<tiddlerText>> tags=<<get-tags>> first-time=""/> (I added the first-time field)

But it doesn't work as the tiddler is created and opens in edit mode. I have worked around it (somewhat for the time being with a BEGIN button that hides the content until the button press saves the tiddler) but I don't really that solution.

So...what am I missing here.

Your help is greatly appreciated.

Regards
Sher



Eric Shulman

unread,
Dec 20, 2021, 2:22:36 PM12/20/21
to TiddlyWiki
On Monday, December 20, 2021 at 10:16:10 AM UTC-8 sheri...@gmail.com wrote:
...tiddlers open in the already saved condition i.e. not in edit mode...

Instead of using `<$action-sendmessage $message="tm-new-tiddler" ... />`

use `<$action-createtiddler ... >`


enjoy,
-e

Sheridan Price

unread,
Dec 21, 2021, 1:14:24 PM12/21/21
to TiddlyWiki
Thank you Eric. 
Works great when followed up by a     <$action-navigate $to=<<createTiddler-title>>/> since in my case I do want the tiddler to open immediately.

If you have some time could you explain why using the sequence:

<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>> first-time=""/>
<$action-sendmessage $message="tm-save-tiddler" $param=<<journalTitle>> />

fails to create and open the tiddler in "view" mode and instead opens it in edit mode. I'm obviously misunderstanding something about how these two action widgets work.

Thanks for taking the time to solve my problem. Looking at the solution I see I should have played even more before calling for help.

Regards
Sher
Reply all
Reply to author
Forward
0 new messages