Changes between Version 12 and Version 13 of AddHeadersPlugin
- Timestamp:
- Feb 8, 2011, 5:31:30 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddHeadersPlugin
v12 v13 4 4 == Description == 5 5 6 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 plug-in allows Trac 0.11/0.12 server admins to add `script`, `link` and `meta` headers into all trac pages without having to create a Chrome template file. 7 7 This allows the easy usage of own !JavaScript and CSS files. Also all other kinds of `link` headers can be added. 8 8 … … 25 25 `default_style_base = `''<path relative to base URL>'' (default: `default_base`):: To provide an different default path for style files. 26 26 27 `default_meta_lang = `''default language>'' (default: None):: Default language for meta tags (i.e. `lang` and `xml:lang` attributes) 28 27 29 `add_scripts = `''<name1>''`,`''<name2>''`,``...`:: Will add `script` tags for all given names. The mime-type and filename can be defined by: 28 30 * ''<name>''`.mimetype = `''<MIME-type>'' (default: '`text/javascript`') … … 37 39 * ''<name>''`.rel = `''<Relation of the link>'' 38 40 * ''<name>''`.href = `''<Relative URL of the link>'' 39 [[BR]]The following settings are o btional:41 [[BR]]The following settings are optional: 40 42 * ''<name>''`.title = `''<Link title>'' 41 43 * ''<name>''`.type = `''<MIME-type of linked content>'' 42 44 * ''<name>''`.class = `''<(CSS?) class of link>'' 45 46 `add_meta = `''<name1>''`,`''<name2>''`,``...`:: Will add [http://en.wikipedia.org/wiki/Meta_element `meta` tags] for all given names. There exists no default setting.[[BR]] 47 [[BR]]One and only one of the following settings must be given: 48 * ''<name>''`.http_equiv = `''<equivalent HTTP header>'' 49 * ''<name>''`.name = `''<name of meta tag>'' 50 * ''<name>''`.scheme = `''<scheme>'' 51 [[BR]]The content is set using: 52 * ''<name>''`.content = `''<content of meta tag>'' 53 [[BR]]Optionally the language can be set using: 54 * ''<name>''`.lang = `''<language of meta tag>'' 43 55 44 56 … … 92 104 style2.title = theme2 93 105 style2.href = /chrome/site/theme2.css 106 107 add_metas = keywords conttype 108 keywords.content = "Trac Wiki page" 109 110 conttype.name = Content-Type 111 conttype.content = text/html 94 112 }}} 95 113 96 This will result in the following added headers :114 This will result in the following added headers (not necessary in that order): 97 115 {{{ 98 <link title="default" type="text/css" href="/chrome/site/style.css" rel="stylesheet" >116 <link title="default" type="text/css" href="/chrome/site/style.css" rel="stylesheet" /> 99 117 <link title="theme1" type="text/css" href="/chrome/site/theme1.css" rel="alternate stylesheet"/> 100 118 <link title="theme2" type="text/css" href="/chrome/site/theme2.css" rel="alternate stylesheet"/> 119 <meta http-equiv="keywords" content="Trac Wiki page" /> 120 <meta http-equiv="Content-Type" content="text/html" /> 101 121 }}} 102 122