Hello,

Not quite sure what /the/ best way is in Tiddlyspot. But this seems to work to enable ReadOnly mode over http access, so that no-one (including you, alas) can edit the page online - but you can edit it offline after you've downloaded it. Then you upload it back.

(omit quotes throughout:)
1) Create a tiddler called "zzConfig" and tagged "systemConfig" (or if you have it already, use it) 2) In zzConfig put (or add) just the line "config.options.chkHttpReadOnly = true;" 3) Open TspotSetupPlugin and comment out the lines "config.options.chkHttpReadOnly = false;" and "window.readOnly = false;" by putting // in front of each 4) Put "chkHttpReadOnly" and "readOnly" in the search box to see if there are other tiddlers with the same lines, which you need to comment out likewise (depends on your theme; e.g. mptw theme has them in MptwConfigPlugin) 5) Download the page to your local computer. This is the file which you'll use off-line for editing, with the sidebar and everything visible. 6) Back on your http page, make sure your password is entered in "options", then "save to web". 7) If you reload the page now (maybe you need to clear the browser history) you should find it non-editable and with the elements gone that have <div macro="hideWhen readOnly"></div> wrapped around them.

Note: I wasn't clear earlier, make sure you wrap the <div macro="hideWhen readOnly"></div> around all of

<div id='sidebar'>
        ···whatever<div···></div>s are here···
</div>

not just around

<div id='sidebar'>

alone.

I also found another thing I want - to remove the options from each
tiddler - is says: Tags: ▾new here close edit delete more  I'm
thinking I really don't need anything but "close" if that since I am
using the single page mode.
For that you can use something like:

<div macro="showWhen !readOnly">                
        <div class='toolbar' macro='toolbar 
[[ToolbarCommands::ViewToolbar]]'></div>
</div>
<div macro="showWhen readOnly">         
        <div class='toolbar' macro='toolbar 
[[ToolbarCommandsPublic::ViewToolbar]]'></div>
</div>

in your ViewTemplate tiddler. You will have to create a new "ToolbarCommandsPublic" tiddler in which you simply put

|~ViewToolbar|close|


Enjoy,

Kosmaton


On 09/03/11 21:12, Joan wrote:
<putting noob hat on>
How does it know when it is me and so turn off the read only to allow
me access? I tried to use a plug in to hide the side bar...and it
worked so well I could not figure out how to get back into it for my
use. Fortunately I had a back up copy of the site I could use...but
I'd rather not go through that again.


I also found another thing I want - to remove the options from each
tiddler - is says: Tags: ▾new here close edit delete more  I'm
thinking I really don't need anything but "close" if that since I am
using the single page mode.

I really appreciate the patience here for helping newbies along. Not
every place is as supportive.

On Mar 9, 2:33 am, Kosmaton<[email protected]>  wrote:
   Hello,

1) I want to hide the sidebar from everyone except me.
You could import the HideWhenPlugin from [1] and then put

<div macro="hideWhen readOnly">
...
</div>

around any ... div in PageTemplate, ViewTemplate etc. which you don't
want visitors to see. In your case that ... would be

<div id='sidebar'>

in your PageTemplate tiddler. (In case you don't find PageTemplate:
point your browser tohttp://myPageURL/#PageTemplate.)

regards, Kosmaton

[1]http://mptw.tiddlyspot.com/#HideWhenPlugin

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to