bad links above.. ..
http://www.tiddlytools.com/#ToggleReadOnly
http://www.strm.us/tw/newlayout

Mike

On Apr 19, 12:41 pm, Mike <[email protected]> wrote:
> putting the transclusion in a hidden section in MainMenu invokes the
> code to run (hide the sidebar, but don't display the toggle) putting
> the hard coded cookie in zzMyConfig tells the transclusion what
> default state to be in. ELS talks about this in one of the links
> above.
>
> If the sidebar is hidden at startup / display, with no visible toggle,
> do you need the readOnly option?
>
> You might also want to look at ToggleReadOnly @
> http//:www.tiddlytools.com, I remember something about having to do a
> forced refresh to clear the cache when using readOnly (or a different
> browser to test the results)
>
> my example with the transclusions
> http//:www.strm.us/newlayout
> (no readOnly though)
>
> Mike (on my phone)
>
> On Apr 19, 9:17 am, Christopher <[email protected]> wrote:
>
>
>
> > > Hi
>
> > > On Apr 19, 2:40 pm, Christopher <[email protected]> wrote:
> > > > Well, I managed to do it. A little underhanded, but it works.
>
> > > > Everytime I tried to add "config.options.chkShowRightSidebar=false; "
> > > > anywhere, it would run just fine, but wouldn't lengthen the main display
> > > > area.
> > > May be the "anywhere" is the problem :) TW does initialize all the
> > > plugins (tagged systemConfig) at startup, according to there name. If
> > > you want to be sure that your user parameters win, name it eg:
> > > zzMyConfig (tagged systemConfg).
>
> > > _But_ the toggle.. macros are no plugins, they are transclusions. It
> > > means, they need to be rendered to be executed.
>
> > > [[zzMyConfig]] tagged: systemConfig excludeLists excludeSearch
> > > config.options.chkShowRightSidebar=false;
>
> > > Ok, so I've moved the line of code to the config tiddler, and renamed it
>
> > 'zzSystemConfig.'
>
> > When I reload it, it works great. But when I put the "if (readOnly)"
> > qualifier before the "config.options.chkShowRightSidebar=false;" and reload
> > it in read only mode (#readOnly:Yes), I get the same problems as before. The
> > sidebar disappears, but the middle section doesn't take over the extra room.
>
> > > Last thing in eg: MainMenu
> > > @@display:none;<<tiddler ToggleRightSidebar>>@@
>
> > I put that in the MainMenu tiddler, but I didn't notice anything happening.
>
> > > > So what I did was edit the toggleRightSidebar tiddler itself. I changed
> > > the
> > > ok.
> > > > "if (co.chkShowRightSidebar===undefined) co.chkShowRightSidebar=true;" 
> > > > to
> > > > "if (co.chkShowRightSidebar===undefined) co.chkShowRightSidebar=false;"
>
> > > could be done, but it only initializes a variable if the variable does
> > > not exist (undefined), or is set to null. Every variable that is part
> > > of config.options.chkXYZ can be stored/loaded to/from a browser
> > > cookie. That means if the chkShowRightSidebar cookie is somehow
> > > overwritten with true, your code is not executed anymore, because the
> > > variable is not undefined. it is eg: true. If your friends only work
> > > with your TW it can work. But may be in the future, if there is more
> > > than one TW it may be an issue. Only to mention it.
>
> > > -m
>
> > Thanks for your help!
>
> > --
> > 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 
> > athttp://groups.google.com/group/tiddlywiki?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/tiddlywiki?hl=en.

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