TracAddHeadersPlugin

AddHeaders Trac Plugin
Download

TracAddHeadersPlugin Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Martin Scharrer
  • Publisher web site:
  • http://scharrer-online.de

TracAddHeadersPlugin Tags


TracAddHeadersPlugin Description

AddHeaders Trac Plugin 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'):tracaddheaders.* = enabledUsage:The plugin is controlled over settings the Trac config file (normally 'conf/trac.ini'). All settings must be put in the section .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 > Requirements: · Python · Trac


TracAddHeadersPlugin Related Software