Make TW5 read-only?

236 views
Skip to first unread message

JWHoneycutt

unread,
Jun 21, 2017, 7:14:18 PM6/21/17
to TiddlyWiki
I would like to share a TW5 file from Dropbox, but have it be read-only.

Does this have an easy answer?

Mark S.

unread,
Jun 21, 2017, 11:07:09 PM6/21/17
to TiddlyWiki
TW5 is read-only out of the box, but that's probably not what you mean. I thought DB had removed the ability to serve up HTML files for free customers, with a plan to drop paying customers sometime in 2017.

There was a recent conversation about read-only and solutions in this thread: https://groups.google.com/forum/#!searchin/tiddlywiki/read-only%7Csort:date/tiddlywiki/JeuinlhzMNU/X61u--YDCQAJ

Good luck,
Mark

Stephen Wilson

unread,
Jun 22, 2017, 7:53:13 AM6/22/17
to TiddlyWiki
You can still serve from drop box using updog or pancake.io

Ken Girard

unread,
Jun 23, 2017, 7:01:07 PM6/23/17
to TiddlyWiki
Years ago I made a TW that showed one toolbar if the right username was typed in, and a different toolbar (No edit features) if anything else was in there. Still using it here at work. 

<div class='toolbar' macro="showWhen config.options.txtUserName == 'KenGirard' "> 
      <span macro='toolbar editTiddler closeOthers closeTiddler'></span>
</div>

<div class='toolbar'  macro="showWhen config.options.txtUserName !== 'KenGirard' ">
      <span macro='toolbar closeTiddler'></span>
</div>

Used http://mptw.tiddlyspot.com/#HideWhenPlugin All kinds of fun stuff from that.. 

Now, that will not stop anyone who really knows what they are doing, but it keeps the clueless out. 

JWHoneycutt

unread,
Jun 23, 2017, 9:25:19 PM6/23/17
to TiddlyWiki
Thank you Ken, 

I need to ask a really basic question. How does your solution get loaded?

I created a new tiddler titled: 
edit ability based on UserName

with body text: 
<div class='toolbar' macro="showWhen config.options.txtUserName == 'KenGirard' "> 
      <span macro='toolbar editTiddler closeOthers closeTiddler'></span>
</div>

<div class='toolbar'  macro="showWhen config.options.txtUserName !== 'KenGirard' ">
      <span macro='toolbar closeTiddler'></span>
</div>

and I can't tell that anything changes. (I didn't even change your name field to mine.) When you say UserName - do you mean the initial login to the computer, or a UserName specified within TiddlyWiki5 (which I don't know about)?

 JWHoneycutt

Mark S.

unread,
Jun 23, 2017, 9:45:15 PM6/23/17
to TiddlyWiki
Ken's solution is for TWC.

Did you look at ste.. 's solution in the thread I linked above? It seems to do everything that can actually be done in TW5. You could hide the admin control with a title like $:/mysecretbutton and only someone who knew the title could find it.

Mark

JWHoneycutt

unread,
Jun 23, 2017, 10:34:53 PM6/23/17
to TiddlyWiki

And a followup question:

Used http://mptw.tiddlyspot.com/#HideWhenPlugin All kinds of fun stuff from that.. 

I like several things in there but must be missing crucial information. For example, I love the idea of InstantTimestampPlugin

All the code is right there - do I copy/paste that into the bodytext of a new tiddler in my tiddlywiki5? Do I have to assign a specific systemconfig tag?

Thanks again -  

Ken Girard

unread,
Jun 24, 2017, 12:55:13 AM6/24/17
to TiddlyWiki
As Mark said, my version is for the Classic version of TW. I haven't really tried messing around with version 5 stuff. 
You can learn about installing plugins in TW5 from this:
http://tiddlywiki.com/#Manually%20installing%20a%20plugin

A quick look over the plugins listed there leads me to think this might be the closest thing to the old HideWhenPlugin
http://tiddlywiki.com/#RevealWidget

Do a search for 'plugin' on that site to see what ones they have available. 

And, yes, UserName is the name specified within TW. Used to be there was a spot you entered who you are, and then when you edited a tiddler it would put your name on it. Kind of a pointless thing if you are the only person using that TW, but if multiple people had access to it... nice to see that Joe is the one who made the last changes on that tiddler. 

ste...@gmail.com

unread,
Jun 24, 2017, 5:13:52 AM6/24/17
to TiddlyWiki
Hi, 

My TW5 tool "Hider", which creates sort of a "Read Only" mode (mentioned by Mark S. earlier in this thread), is now available here:


Maybe it helps!

(Josiah, I adopted your naming suggestion - thank you for this!)

Cheers,

Stef

JWHoneycutt

unread,
Jun 25, 2017, 8:05:49 PM6/25/17
to TiddlyWiki
Thank you Stef -
That's exactly what I was looking for
JWHoneycutt

JWHoneycutt

unread,
Jun 25, 2017, 8:08:30 PM6/25/17
to TiddlyWiki
Thanks Ken -

I'm learning that when plugins don't do anything but act to reload themselves, I must be dealing with a TW Classic plugin !

JWHoneycutt

Birthe C

unread,
Jun 25, 2017, 9:10:44 PM6/25/17
to TiddlyWiki
For time stamp, did you see https://groups.google.com/d/msg/tiddlywiki/UHt6GsMpyAQ/USFJxw68AQAJ  a button for the editor toolbar



Birthe
Reply all
Reply to author
Forward
0 new messages