Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 9
Web server: Apache 1.3 something
Perl version: 5.8.0
Client OS: Windows 2000 SP4
Web Browser: Firefox 1.4
Categories: Javascript, Skin

-- 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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-06-26 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.