Here's one way to prevent saving changes...

1) Disable auto-saving the wiki.

2) Edit the core shadow tiddler for the save wiki button, e.g. 
$:/core/ui/Buttons/save-wiki 
<http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fsave-wiki>:

<$reveal type="match" state="$:/_secret" text="my-secret">
<!-- THE CORE BUTTON CODE -->
</$reveal>

Now the save button should be gone from the page-controls.

3) Read States And Temporary Tiddlers @ tb5 
<http://tobibeer.github.io/tb5/#States%20And%20Temporary%20Tiddlers> and 
then add...

 -[[$:/_secret]]

...to the filter expression to make sure it never gets saved. I would also 
recommend modifying the filter to what you see on tb5 to not persist any 
states of sidebar tabs, etc.

4) Create *$:/_secret* and enter the text *my-secret*.

Now the save button should be visible again... and you can click it to save 
the wiki.

5) To easily enter your password, create and permalink 
<http://tiddlywiki.com/#PermaLinks> a tiddler called *Login* containing...

<$edit-text
tiddler="$:/_secret"
default=""
tag="input"
type="password"
placeholder="enter secret here..."/>

When you tag it *$:/tags/ControlPanel* it will show up as a *Login* tab in 
the *ControlPanel*.

~

As probably noticed, your "password" is entirely visible in plain text, so 
be aware that this should not be any fancy password but just a barrier to 
enable saving. Also, if anyone activated auto-save, they won't even need a 
save button to trigger saving changes. So, anyone playful enough or with 
malicious intent will be able to screw up your wiki. Hence, do frequent 
backups.

Best wishes,

–tb

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0a4a4a2e-369c-4d95-a397-7c5a8e739b7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to