> 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 to http://myPageURL/#PageTemplate.)
regards, Kosmaton
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