Question
Has anyone figured out a way to apply a skin to one particular window (or frame) and have it persist after clicking on a link?
For example, suppose I have set
PatternSkin as my default skin for TWiki.org. Now from the Edit screen, I click on the "More formatting help" which pops up
TextFormattingRules in a new window with the
plain skin applied using "?skin=plain". However, if I then click on one of links in that window, the next page displayed with revert back to
PatternSkin.
Anyone see a way around this?
Environment
--
LynnwoodBrown - 03 Aug 2004
Not sure why this was marked as
ClosedUnanswered, but I'm changing it back to
SupportStatus of
AskedQuestions, because I also need to know how to accomplish this.
--
AdamSpiers - 01 Sep 2005
Answer
I'm hoping someone else will chip in here, but I'm trying to answer my own question anyway. First, some relevant links:
It looks like all (hopefully, or most) internal links are generated via
TWiki::Render::internalLink(), so checking for a
skin CGI parameter there and persisting it on existence would presumably do it. Unfortunately,
internalLink() doesn't get passed the CGI query object though, so this would mean an interface change
--
AdamSpiers - 01 Sep 2005
Adam - you might take a look at
UsingTopicToDefineCSS which has been implemented in
DevelopBranch. It doesn't apply a skin in a window but does apply a style to a particular topic. I'm continuing to search for options
HowToApplyPersistentSkinInWindow and suspect some other features in Dakar
may provide a mechanism, but haven't had time to work on it. I'm glad someone else sees this need!
--
LynnwoodBrown - 01 Sep 2005
I just took a peak at
TWikiKernel-DEVELOP-6231 and I see that everything has gone a lot more OO since
CairoRelease. This is great news, because
TWiki::Render::internalLink() is now a method acting on a
TWiki::Render object which caches the CGI query object in it. So we can check for the presence of a
skin CGI parameter after all - meaning it should be a simple code hack. The only problem is that it's going to be a
big job to get our site install upgraded from
Cairo, and I'm not sure it's even a good idea until
Dakar is released.
--
AdamSpiers - 02 Sep 2005