SID-02187: Skin per Web
| Status: |
Asked |
TWiki version: |
6.0.1 |
Perl version: |
|
| Category: |
CategorySkin |
Server OS: |
Linux |
Last update: |
9 years ago |
Hi,
I'm having a TWiki site with two webs: a public web and a private web.
I want to use a different skin for the private web.
How can this be achieved?
I've been looking around in the TWiki Support Web, but I don't immediately find an answer.
Thanks in advance for any advice
Stijn
--
Stijn Bousard - 2016-04-11
Discussion and Answer
Set a specific skin in the
WebPreferences of a web, such as here to enable the
PatternSkin just for this topic:
Details in
TWikiSkins.
--
Peter Thoeny - 2016-04-12
Thanks,
But I think I did not formulate my question correctly.
The "Set SKIN = ..." is also what I read on
http://twiki.org/cgi-bin/view/TWiki/TWikiSkins
.
This way I can make my private web look exactly the same as my public web.
However, I want another skin.
So my question is, where do I find the definition of "tagme", "topmenu" and "pattern".
Or, in other words, how do I access my personal skin? Where is "pattern" linked to "twiki\pub\TWiki\PatternSkin"? And how can I e.g. map "personal" to "twiki\pub\TWiki\MySkin" and hence use "SET SKIN = personal"?
I hope this clarifies my question.
--
Stijn Bousard - 2016-04-16
According to
http://twiki.org/cgi-bin/view/TWiki/TWikiSkins
, the skin name is taken from <scriptname>.<skin>.tmpl. I want a modified "style.css", this css file is not defined in css.pattern.tmpl, only in css.twikinet.tmpl:
@import
url("%PUBURLPATH%/%SYSTEMWEB%/TWikiNetSkin/style.css");
So it remains a mystery to me how I'll get a personal skin with a personal style.css.
Any help would be appreciated.
--
Stijn Bousard - 2016-04-20
Details on how to create a new skin are described in
TWikiSkins. It is easy to understand with a simple example: The
PublishWebPlugin has a bare bone demo skin called
view.demo_website.tmpl viewable at
SVN:PublishWebPlugin/templates/
. It is basically an HTML page with a
%<nop>TEXT% placeholder for the page content. In that file you can include
.js and
.css as needed. To use that skin, copy it into your
twiki/templates directory, and activate it with a
SKIN = demo_website preferences setting (or with a
skin=demo_website URL parameter for testing.)
--
Peter Thoeny - 2016-04-20
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.