Changes between Initial Version and Version 1 of AddHeadersPlugin


Ignore:
Timestamp:
Oct 31, 2008, 11:42:55 PM (15 years ago)
Author:
Martin Scharrer
Comment:

New hack AddHeadersPlugin, created by martin_s

Legend:

Unmodified
Added
Removed
Modified
  • AddHeadersPlugin

    v1 v1  
     1= Add HTML Headers to Trac Pages in a simple way =
     2
     3== Description ==
     4
     5This 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
     7== Installation ==
     8Copy the single python file into the '`plugins`' directory of your trac installation and add the following into the config file (normally '`conf/trac.ini`'):
     9
     10{{{
     11[components]
     12addheaders.* = enabled
     13}}}
     14
     15
     16== Bugs/Feature Requests ==
     17
     18Existing bugs and feature requests for AddHeadersPlugin are
     19[report:9?COMPONENT=AddHeadersPlugin here].
     20
     21If you have any issues, create a
     22[http://trac-hacks.org/newticket?component=AddHeadersPlugin&owner=martin_s new ticket].
     23
     24== Download ==
     25
     26Download the zipped source from [download:addheadersplugin here].
     27
     28== Source ==
     29
     30You can check out AddHeadersPlugin from [http://trac-hacks.org/svn/addheadersplugin here] using Subversion, or [source:addheadersplugin browse the source] with Trac.
     31
     32== Example ==
     33
     34{{{
     35The following example shows how to add files for a multi-style implementation:
     36The 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# in trac.ini
     39[addheaders]
     40default_style_base  = site/css/
     41default_script_base = site/js/
     42
     43add_scripts  = multistyle
     44add_styles   = common
     45add_links    = style0,style1,style2
     46
     47style0.rel   = stylesheet
     48style0.type  = text/css
     49style0.title = default
     50style0.href  = /chrome/site/default.css
     51
     52style1.rel   = alternate stylesheet
     53style1.type  = text/css
     54style1.title = theme1
     55style1.href  = /chrome/site/theme1.css
     56
     57style2.rel   = alternate stylesheet
     58style2.type  = text/css
     59style2.title = theme2
     60style2.href  = /chrome/site/theme2.css
     61}}}
     62
     63
     64== Recent Changes ==
     65
     66[[ChangeLog(addheadersplugin, 3)]]
     67
     68== Author/Contributors ==
     69
     70'''Author:''' [wiki:martin_s] [[BR]]
     71'''Contributors:'''