Need help with read only

35 views
Skip to first unread message

Joan

unread,
Mar 8, 2011, 3:58:57 PM3/8/11
to TiddlyWiki
I have a wiki hosted at Tiddlyspot. I have two functions I have yet to
figure out and hope someone here can help

1) I want to hide the sidebar from everyone except me. I think the
PublisherPlugin (formerly PresentationPlugin) would do what I want,
but the author's site is down and no amount of searching has let me
find it elsewhere. I find everywhere that talks about how great it is,
but can't find the actual plugin.

2) I would like to have a contact form that would send me an email -
so people can contact me directly from the website.

Måns

unread,
Mar 8, 2011, 6:25:51 PM3/8/11
to TiddlyWiki
Hi Joan

> 1) I want to hide the sidebar from everyone except me.

Maybe this thread will give you some ideas:
https://groups.google.com/group/tiddlywiki/browse_thread/thread/97cb7b17a030246e/5ef0a4508d0ba596?

> 2) I would like to have a contact form that would send me an email -
> so people can contact me directly from the website.

If you use gmail - or several gmail accounts you can have a generic
template for contacts like this:
[[MailTo]]
<html><div align="center"><iframe src="http://www.formlogix.com/
Manager/AppPageGadget.aspx?TemplateID=22&email=$1...@gmail.com"
frameborder="0" width="100%" height="320px"></iframe></div></html>
You'll use the tiddler macro in another tiddler like this: <<tiddler
MailTo with: YourGmailPrefix>> ..

Cheers Måns Mårtensson

Joan

unread,
Mar 8, 2011, 7:09:47 PM3/8/11
to TiddlyWiki
Thanks for the fast reply...

On Mar 8, 3:25 pm, Måns <humam...@gmail.com> wrote:
> Hi Joan
>
> > 1) I want to hide the sidebar from everyone except me.
>
> Maybe this thread will give you some ideas:https://groups.google.com/group/tiddlywiki/browse_thread/thread/97cb7...

I'm reading through it - but much I don't understand and it will take
several readings. Thanks for pointing me in the right direction.

> > 2) I would like to have a contact form that would send me an email -
> > so people can contact me directly from the website.
>
> If you use gmail - or several gmail accounts you can have a generic
> template for contacts like this:
> [[MailTo]]
> <html><div align="center"><iframe src="http://www.formlogix.com/
> Manager/AppPageGadget.aspx?TemplateID=22&email...@gmail.com"
> frameborder="0" width="100%" height="320px"></iframe></div></html>
> You'll use the tiddler macro in another tiddler like this: <<tiddler
> MailTo with: YourGmailPrefix>> ..

Where do I put this? all in one tiddler? Does it need a certain name?
I am very new to all this... good at following directions, but need
specifics please.

Thanks - Joan

FrD

unread,
Mar 9, 2011, 2:45:55 AM3/9/11
to TiddlyWiki
Hi Måns,

I'm interested by your info about the contact form.
But it seems the url you gave is probably not complete.
And I could'nt find the right template at formlogix.
Could you verify and give some details.

Thanks

FrD

On 9 mar, 00:25, Måns <humam...@gmail.com> wrote:
> Hi Joan
>
> > 1) I want to hide the sidebar from everyone except me.
>
> Maybe this thread will give you some ideas:https://groups.google.com/group/tiddlywiki/browse_thread/thread/97cb7...
>
> > 2) I would like to have a contact form that would send me an email -
> > so people can contact me directly from the website.
>
> If you use gmail - or several gmail accounts you can have a generic
> template for contacts like this:
> [[MailTo]]
> <html><div align="center"><iframe src="http://www.formlogix.com/
> Manager/AppPageGadget.aspx?TemplateID=22&email...@gmail.com"

Bauwe Bijl

unread,
Mar 9, 2011, 4:48:41 AM3/9/11
to TiddlyWiki
Hi,

The contact form example is worked out on tiddlyspace.

http://to-gmail.tiddlyspace.com/

Here the usage is explained.....

The tiddler "Mailto" is excluded from the list but can be found here:
http://to-gmail.tiddlyspace.com/#Mailto

You need to copy this tiddler (Mailto).....which is like a template
Then create a tiddler (eg. Contact....or contactform)....and show it
in the mainmenu for example.
inside the contact-tiddler:
<<tiddler Mailto with:EXAMPLE>>

* Replace EXAMPLE with your own gmail info (the part before the
@ )

Bauwe

Kosmaton

unread,
Mar 9, 2011, 5:33:41 AM3/9/11
to tiddl...@googlegroups.com
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 to http://myPageURL/#PageTemplate.)

regards, Kosmaton

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

FrD

unread,
Mar 9, 2011, 10:58:12 AM3/9/11
to tiddl...@googlegroups.com
Thanks ! it works.

FrD

Joan

unread,
Mar 9, 2011, 11:29:46 AM3/9/11
to TiddlyWiki
That was simple - works beautifully.

Joan

unread,
Mar 9, 2011, 3:12:00 PM3/9/11
to TiddlyWiki
<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 <Kosma...@gmx.com> 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.)

Kosmaton

unread,
Mar 10, 2011, 3:49:03 AM3/10/11
to tiddl...@googlegroups.com
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

Joan

unread,
Mar 12, 2011, 12:56:07 PM3/12/11
to TiddlyWiki
Just to report back...since others may be looking for the same
information in the future:

I found that I could use the http://jnthnlstr.googlepages.com/BackstageSidebarPlugin.html
to move the sidebar to the Backstage area - which is hard to find on
my page. That should be enough to keep people from accidentally
getting into it. Those who would get into it deliberately..well they
will hunt it down no matter what I do. While this doesn't do exactly
what I wanted, I think it is close enough for my purposes.

Reply all
Reply to author
Forward
0 new messages