> thanks everyone, but how do you install pluglins? particularly Paul
> Downey's 
> SingleTiddlerPluginhttp://whatfettle.com/2008/07/SingleTiddlerPlugin/#SingleTiddlerPlugin

I recommend trying
   http://www.TiddlyTools.com/#SinglePageModePlugin
   http://www.TiddlyTools.com/#SinglePageModePluginInfo

When I first wrote this plugin many years ago, the code looked very
much like what Paul has posted.  However, in response to practical
issues reported by people "in the field", SinglePageModePlugin ("SPM")
has implemented several features and behaviors that Paul's minimalist
code does not address.  For example:

* robust handling for automatically scrolling the correct tiddler into
view, as well as adding *confirmation* before closing tiddlers that
are still open for editing (to avoid loss of unsaved changes to those
tiddlers).

* instances where multiple tiddlers *ARE* supposed to be displayed,
such as when several tiddlers are listed in DefaultTiddlers or a
#permaview URL, or when showing multiple tiddlers as the result of a
full text search.

* events from the browser's BACK button to correctly restore the
previously displayed tiddler, or the DefaultTiddlers, or whatever
tiddlers the originally referenced URL displayed upon startup (i.e, a
#permaview URL)

* updates the browser's window title to reflect the title of the
currently viewed tiddler.

* adds "top of page" and "bottom of page" options for more consistent
tiddler placement, even when multiple tiddlers are desired.

> not sure how to import plugins...
> Also, should I be clicking "sync with the server" when I import
> plugins?

For SPM, you import just the one SinglePageModePlugin tiddler, with or
without the accompanying "...Info" tiddler.  Make sure to keep the
'systemConfig' tag on the imported tiddler, and don't edit out any
what might *seem* to be 'non-code' portions of the plugin tiddler's
content.

Then, you need to save-and-reload the document so that the code in the
plugin will be invoked during documents startup to add the desired
functionality.

Note that, by default, SPM does NOT activate the 'one at a time'
feature.  You must enable it by setting a checkbox option:

   <<option chkSinglePageMode>> show one tiddler at a time

This setting is stored as a local browser cookie, so that the current
choice will persist in between sessions.  However, the setting does
not 'travel' with the document (e.g., if posted online or shared with
others).  In order to 'hard code' the SPM settings into your
document,  create a tiddler (e.g., "CookieJar"), tagged with
'systemConfig', containing these lines:

//{{{
config.options.chkSinglePageMode=true;
//}}}

After you save-and-reload, your document will *always* start out using
the 'one at a time' display setting.  You *can* change the setting
during the current session (via the checkbox syntax shown above), and
the stored cookie value *is* updated.... but the hard-coded value in
the CookieJar tiddler will *always* override the browser-based cookie
value, ensuring that the document starts out 'one at a time'
regardless of the most recent setting that was in use.

hope this helps....

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

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