Hi Rémy,
I see that the template who render the stylesheet tag
is the
TemplateBodyContents. The matter is that this one is not removeable
from the template list and then whe can't do the replacement. The only
thing we can do is to put another style tag in the html but I'm not
sure all the browsers will take this second stylesheet in account.
actually it no problem to put multiple style-sheets into the header.
However is important to have them in the right order.
What I would suggest is that you simply modify the style-sheet property
in the structure. This is a string and you have the full power to
define the load order and is supported by all browsers. The example
below loads A, the default style-sheet and B exactly in that order:
@import "... A ..."
@import "http://www.iam.unibe.ch/~scg/smallwiki...
@import "... B ..."
As A and B you might want to put your own url, note that it is also
possible to point it to a SmallWiki location. You could use this fact
to build your own style-sheets dynamically ...
@import "/?action=DynamicStyleheetAction"
I think it's it should be a good idea to split the
TemplateBodyContents in 2 templates: one for the contents and another
for the stylesheet (e.g.: TemplateHeadStylesheet) which is removeable.
That would be possible too, of course, but I prefer the solution above
as there is usually no sense to have a wiki without a style-sheet.
PS: sorry for the faults, it's not my mother
language
The same here ;)
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org