Tags:
create new tag
view all tags

Question

I added a javascript to the main twiki.tmpl file in the section defined as "script." When I logged into TWiki (from the browser), I did a Page Source view and didn't see the script listed. I expected that adding the script to the template file would cause it to appear in all topics; is this incorrect? Any help you can provide would be greatly appreciated!

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: Windows XP
Web Browser: Firefox 2.0.0.11
Categories: Javascript

-- AnthonyCalderon - 18 Jan 2008

Answer

ALERT! 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.

Javascripts should actually be added to the javascript.pattern.tmpl file (when using the default skin). Define the template with TMPL:DEF and add it to the top section with TMPL:P; this should immediately propagate across the wiki.

-- AnthonyCalderon - 06 Feb 2008

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-02-06 - AnthonyCalderon
 
  • 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.