Hi Vidyut

You can use HideWhenPlugin [1]

Then edit PageTemplate and hide the divs you want to hide;
For example;

<div macro="hideWhen readOnly">
        <div id='sidebar'>
        <div id='sidebarOptions' refresh='content' 
tiddler='SideBarOptions'></div>
        <div id='sidebarTabs' refresh='content' force='true'
tiddler='SideBarTabs'></div>
        </div></div>


enjoy

Alex

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


2009/11/15 okido <[email protected]>

>
> You can use PublisherPlugin or Presentation plugin that can be found
> here: http://lewcid.googlepages.com/presentation_empty.html#author:true
>
> Or use your own java code like this small example:
>
> var pos = window.location.toString().indexOf('#author:true');
>  if ( pos == -1 ){
>  var t=store.getTiddler("SideBarOptions");
>  t.text = t.text.replace('<<saveChanges>>',"");
> store.saveTiddler
> (t.title,t.title,t.text,config.options.txtUserName,new Date
> (),t.tags,t.fields); }
>
> The condition is the url name, when it ends on #author:true it will
> not do anything.
> Past the text in a tiddler with the name z_disap and tag it with
> systemConfig.
> During loading the tiddler SideBarOptions is modified so that the
> saveChanges button disappears.
> You can extend this as far as you want.
>
> Have a nice day, Okido
>
>
>
>
> On 15 Nov, 13:11, vidyutg <[email protected]> wrote:
> > Hi,
> > I want to build a simple personal webpage usingTW. So obviously, I do
> > not want people browsing the site to see all the edit/save features. I
> > tried the following to make my site readonly:
> >
> > <div id='s_customTiddler' tiddler='customTiddler' tags='systemConfig'>
> > config.options.chkHttpReadOnly = true;
> > </div>
> >
> > But this does not remove the right sidebar or the {close. close
> > others, view, more} links. Can someone help me with this?
> >
> > Thanks,
> > Vidyut
> >
>


-- 
http://www.multiurl.com/g/64

--~--~---------~--~----~------------~-------~--~----~
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