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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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:
Topic revision: r2 - 06 Feb 2008 - 17:45:39 - AnthonyCalderon
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback