dev wrote: (copied from another thread)
> how can I make the sidebar hidden by default ?
> I have a toggleSideBar macro , but that doesn't make it hidden by
default.
Try this inline script:
http://www.TiddlyTools.com/#ToggleRightSidebar
(requires
http://www.TiddlyTools.com/#InlineJavascriptPlugin)
Then, in [[MainMenu]] add:
<<tiddler ToggleRightSidebar>>
This adds an 'arrow' into the main menu display. Initially, the
sidebar is displayed by default. Clicking the arrow will toggle the
sidebar display state (i.e., hide the sidebar) and save that setting
as a cookie (chkShowRightSidebar), so that the next time you load the
document, the sidebar will be hidden (or shown) as soon as the
document is rendered.
If you want to *always* start with the sidebar hidden, you can 'hard-
code' the option setting by using a tiddler (e.g., [[ConfigTweaks]] or
[[CookieJar]]), tagged with 'systemConfig', containing:
config.options.chkShowRightSidebar=false;
Note: Because the arrow in the MainMenu is created using
InlineJavascriptPlugin, you can also drag-and-drop the arrow directly
onto the browser's toolbar, creating a stand-alone 'instant
bookmarklet' that can be applied to *any* TiddlyWiki document, even if
[[ToggleRightSidebar]] and [[InlineJavascriptPlugin]] are not
installed in that document!
To try this, visit TiddlyTools.com and drag the ToggleRightSidebar
'arrow' that is displayed in the upper right corner of the story
column and drop it directly onto your browser's toolbar. Then, open
your own document, and click the 'instant bookmarklet' from the
browser's toolbar. The sidebar in *your* document will appear/
disappear, even though nothing new has been installed into your
document!
Note: see also
http://www.TiddlyTools.com/#InstantBookmarklets
for several other convenient bookmarklets, including:
ToggleRightSidebar
ToggleLeftSidebar
ToggleTitles
ToggleFullscreen (does all three of the above in one click!)
and several others...
enjoy,
-e