TracAddHeadersPlugin 0.2.7019

AddHeaders Trac Plugin

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL v3 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Martin Scharrer
HOMEPAGE:
www.trac-hacks.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
TracAddHeadersPlugin is a Trac plug-in that allows Trac 0.11 server admins to add script and link headers into all trac pages without having to create a Chrome template file. This allows the easy usage of own JavaScript and CSS files. Also all other kinds of link headers can be added.

Installation:

Install as normal and enable this plug-in by adding the following into the config file (normally 'conf/trac.ini'):

[components]
tracaddheaders.* = enabled

Usage:

The plugin is controlled over settings the Trac config file (normally 'conf/trac.ini'). All settings must be put in the section [addheaders].

Settings:

default_base = < path relative to base URL > (default: 'site/')
 This is used as default base of the files relative to the base URL (which is e.g. http://trac.example.org/project1/). Please note that URL paths not local file paths are used. The default is site/ which is the relative URL for the htdocs directory in your $TRAC_PROJECT_DIR.

default_script_base = < path relative to base URL > (default: default_base)
 To provide an different default path for scripts.

default_style_base = < path relative to base URL > (default: default_base)
 To provide an different default path for style files.

add_scripts = < name1 >,< name2 >,...
 Will add script tags for all given names. The mime-type and filename can be defined by:

 * < name >.mimetype = < MIME-type > (default: 'text/javascript')
 * < name >.filename = < filename incl. path > (default: default_script_base< name >.js)

add_styles = < name1 >,< name2 >,...
 Will add CSS link tags for all given names. The mime-type and filename can be defined by:

 * .mimetype = (default: 'text/css')
 * < name >.filename = < filename incl. path > (default: default_style_base< name >.css)

add_link = < name1 >,< name2 >,...
 Will add general link tags for all given names. There exists no default setting.

 The following settings are mandatory:

 * < name >.rel = < Relation of the link >
 * < name >.href = < Relative URL of the link >

The following settings are obtional:

 * < name >.title = < Link title >
 * < name >.type = < MIME-type of linked content >
 * < name >.class = < (CSS?) class of link >

Last updated on November 4th, 2009

requirements

#AddHeaders plugin #Trac plugin #HTML headers #AddHeaders #Trac #plugin #HTML

Add your review!

SUBMIT