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;


Last thing in eg: MainMenu
@@display:none;<<tiddler ToggleRightSidebar>>@@


> 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

> So each time I load it with the 'false' the right sidebar is gone *and* the
> main display takes over that area of the screen.
>
> Thanks for your assistance!
> Christopher
>
>
>
>
>
>
>
>
>
> On Mon, Apr 19, 2010 at 5:27 AM, PMario <[email protected]> wrote:
> > Hi,
> > This may be of interest.
>
> >http://groups.google.com/group/tiddlywiki/browse_thread/thread/202ed6...
>
> > Eric Shulman post near the end:
>
> >http://groups.google.com/group/tiddlywiki/browse_thread/thread/3ac3f9...
>
> > using:
> >http://www.tiddlytools.com/#SiteStartup
>
> > also near the end: ToggleLeftSidebar, ToggleRightSidebar  section
>
> > have fun!
> > mario
>
> > On 17 Apr., 23:00, Christopher <[email protected]> wrote:
> > > Hi all,
>
> > > I'm attempting to transfer game books that I own to tiddlywiki files
> > > for ease of search, small file size, and wiki-links. Unfortunately,
> > > I've run into a snag.
>
> > > I've managed to do everything I set out to do so far, except for
> > > getting the center section to go full-screen.
>
> > > I'm using the toggleLeftSidebar thing to show/hide the Table of
> > > Contents, and I am hiding the right sidebar with the following code in
> > > a systemConfig tiddler:
>
> > > if (readOnly) setStylesheetLayout("#sidebar {width:0em;}");
>
> > > So when I load it in read-only mode (don't wanna mess up my hard work,
> > > and I want to give it to my friends who also have the book), the right
> > > sidebar is gone, and I can toggle the right sidebar. But the center
> > > area still stops where the right sidebar usually is.
>
> > > How do I get the center area to take advantage of all the screen real
> > > estate? I don't want to have a button to toggle, like for the left
> > > sidebar, because if/when I give the file to my friends, they don't
> > > need to see the right sidebar at all.
>
> > > Thanks for your assistance!
>
> > > --
> > > 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]<tiddlywiki%[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]<tiddlywiki%[email protected]>
> > .
> > For more options, visit this group at
> >http://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