Question
I'm writing an in-house application which I will integrate into our twiki. The application needs CSS and various javascripts which will only be used by the application ( which will be accessed like any twiki topic ).
I don't want to put the css and javascripts into the tmpl files for the skin I'm using as then they would be loaded needlessly into the other topics that use that skin.
I know I could create a new skin which is an exact copy of the current one plus my new stuff added in and then just use this skin for the desired topic but can anyone think of a better way ??
Environment
--
ColmOGairbhith - 21 Jun 2005
Answer
You can set a style per page. Have a look at the pattern skin documentation:
PatternSkinCustomization.
You could use the same mechanism to include javascript per topic (but you would need to write some code in
twiki.pattern.tmpl yourself. Haven't done it myself because it is not clear what the security implications are. If you only use it in-house this probably won't do much damage.
--
ArthurClemens - 21 Jun 2005
See also
TextFormattingRules
--
PeterThoeny - 26 Jun 2005