> > 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 at http://groups.google.com/group/tiddlywiki?hl=en.

