I tried to use SelectStyleSheet Plugin to replace WebTemplateTweak, as
you advised, due to problems in WebTemplateTweak, to get different
layouts of wiki on WEB side.
What happens is that:
1. WebViewTemplate apparently is used on the web side, instead of
dfault ViewTemplate, as expected
2. WebPageTemplate is not used, I do not know why. I continue to see
the default PageTemplate.
Have a look, if you want, at
http://www.renatoroque.com/umaespeciedeblog/index2.2.4.htm
Must I configure anything else, besides just loading SelectStyleSheet
Plugin, to activate WebPageTemplate on WEB side?
Thanks
Renato
Enabling debugging messages in SelectStylesheetPlugin (by setting
config.macros.selectStylesheet.verbose=true in the plugin source
code), shows that during startup processing, the plugin IS switching
to the WebPageTemplate, but then, as the startup is being completed, a
notifyAll() notification event is triggering another call to
applyPageTemplate(), causing the reversion to the standard
PageTemplate.
Unfortunately, eliminating this unneeded startup notification event
seems to be next to impossible. Fortunately, there is a global flag
variable, "startingUp", defined by the core, that can be used by
plugins to determine code is being invoked during document
initialization.
I have added checks for this flag in SelectStylesheetPlugin (see
switchTemplates() and applyPageTemplate() functions), so that it can
ignore the default handling of the core notification event during
startup, allowing the alternative page template to remain in use.
Get the update (V4.4.1) here:
http://www.TiddlyTools.com/#SelectStylesheetPlugin
HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios