Changes between Version 1 and Version 2 of AddHeadersPlugin
- Timestamp:
- Oct 31, 2008, 11:50:11 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddHeadersPlugin
v1 v2 3 3 == Description == 4 4 5 This plug-in allows Trac 0.11 server admins to add script and link headers into all trac pages without having to create a Chrome template file. 5 This plug-in allows Trac 0.11 server admins to add `script` and `link` headers into all trac pages without having to create a Chrome template file. 6 This allows the easy usage of own !JavaScript and CSS files. Also all other kinds of `link` headers can be added. 6 7 7 8 == Installation == … … 13 14 }}} 14 15 16 == Usage == 17 Comming soon. In the meantime see the [#Example example] below. 15 18 16 19 == Bugs/Feature Requests == … … 31 34 32 35 == Example == 36 The following example shows how to add files for a multi-style implementation: 37 The !JavaScript file is located at `$TRAC_PROJECT_DIR/htdocs/js/multistyle.js` and all CSS files are located at `$TRAC_PROJECT_DIR/htdocs/css/`. 38 A general style file '`common.css`' is included which holds all common style definition. The default style is in '`default.css`' and the alternative styles in '`theme1.css`' and '`theme2.css`'. 39 Please note that general CSS files are added using `add_styles` while the others using `add_links`. This has HTML and Trac API related reasons. 33 40 34 41 {{{ 35 The following example shows how to add files for a multi-style implementation:36 The JavaScript file is located "$TRAC_PROJECT_DIR/htdocs/js/multistyle.js" and all CSS files are located at "$TRAC_PROJECT_DIR/htdocs/css/". A general style file 'common.css' is included which holds all common style definition. The default style is in 'default.css' and the alternative styles in 'theme1.css' and 'theme2.css'.37 38 42 # in trac.ini 39 43 [addheaders]