Changes between Version 20 and Version 21 of AddHeadersPlugin
- Timestamp:
- Nov 9, 2015, 3:35:20 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddHeadersPlugin
v20 v21 14 14 15 15 If you have any issues, create a 16 [ http://trac-hacks.org/newticket?component=AddHeadersPlugin&owner=martin_snew ticket].16 [/newticket?component=AddHeadersPlugin new ticket]. 17 17 18 18 [[TicketQuery(component=AddHeadersPlugin&group=type,format=progress)]] … … 20 20 == Download 21 21 22 Download the zipped source from [ download:addheadersplugin here].22 Download the zipped source from [export:addheadersplugin here]. 23 23 24 24 == Source 25 25 26 You can check out AddHeadersPlugin from [ http://trac-hacks.org/svn/addheadersplugin here] using Subversion, or [source:addheadersplugin browse the source] with Trac.26 You can check out AddHeadersPlugin from [/svn/addheadersplugin here] using Subversion, or [source:addheadersplugin browse the source] with Trac. 27 27 28 28 == Installation … … 40 40 === Settings 41 41 42 `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 eg `http://trac.example.org/project1/`. 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`.42 `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 eg `http://trac.example.org/project1/`. Note that URL paths are used, not local file paths. The default is `site/` which is the relative URL for the `htdocs` directory in your `$TRAC_PROJECT_DIR`. 43 43 44 44 `default_script_base = `''<path relative to base URL>'' (default: `default_base`):: To provide a different default path for scripts. … … 84 84 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/`. 85 85 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`. 86 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. 87 88 {{{#!ini 89 # in trac.ini86 87 Note that general CSS files are added using `add_styles`, while the others are using `add_links`. This has HTML and Trac API related reasons. 88 89 {{{#!ini 90 90 [addheaders] 91 91 default_style_base = site/css/ … … 119 119 120 120 This will result in the following added headers, not necessary in that order: 121 {{{ 121 {{{#!html 122 122 <link title="default" type="text/css" href="/chrome/site/style.css" rel="stylesheet" /> 123 123 <link title="theme1" type="text/css" href="/chrome/site/theme1.css" rel="alternate stylesheet"/>