Question
I'm not sure if this is a bug or a configuration problem, but I'm having trouble with skin fallbacks on TWiki 4.2.0
(Tue, 22 Jan 2008, build 16278 to be exact). In previous versions, if I set
- Set SKIN = skin1, pattern
in TWikiPreferences, then templates that exist for
skin1 will be used if they exist, and default PatternSkin templates will be used for those actions were the
skin1 template is missing.
I've used (errrr,
abused rather) this feature a lot to provide a custom look to each web on
view calls, yet all webs can use the latest-and-greatest pattern skin edit features.
Is skin fallback supported in 4.2? or is this feature loss a bug?
Many thanks in advance.
Environment
--
ScottHoge - 28 Mar 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
No, this is still supported. And even more, you have the COVER variable that basically allow you to "push" (prepend) skins at the start of the SKIN path without forgetting the old ones. So if you have
SKIN = pattern in your wiki, you could just write
COVER = skin1. This is very useful for tweaking the layout for different style of pages (one column / two columns, thin/wide columns, ...)
--
ColasNahaboo - 29 Mar 2008
Thanks for the response, Colas.
Pointers to any suggestions on how to debug the configuration are welcome. I carried the same settings over from TWiki4.1, where it worked. But I can't seem to get it working in 4.2.
--
ScottHoge - 29 Mar 2008
It definetly works, as I depend on it in
MoveableTypeSkin ,
RestPlugin and
JSPopupPlugin etc. But, it is true that
PatternSkin has changed, so it is likely to be related to that - do a diff in the templates directory between the 2 versions, or eyeball looking for the sections that you are over-riding.
--
SvenDowideit - 30 Mar 2008