Changes between Version 3 and Version 4 of TracInterfaceCustomization


Игнорировать:
Время:
10 апр. 2011 г., 17:54:27 (15 лет назад)
Автор:
trac
Комментарий:

--

Обозначения:

Без изменений
Добавлено
Удалено
Изменено
  • TracInterfaceCustomization

    v3 v4  
    1515
    1616=== Logo ===
    17 Change the `src` setting to `site/` followed by the name of your image file.  The `width` and `height` settings should be modified to match your image's dimensions (the Trac chrome handler uses "`site/`" for files within the project directory `htdocs` and "`common/`" for the common ones).
     17Change the `src` setting to `site/` followed by the name of your image file.  The `width` and `height` settings should be modified to match your image's dimensions (the Trac chrome handler uses "`site/`" for files within the project directory `htdocs` and "`common/`" for the common ones). Note that 'site/' is not a placeholder for your project name, it is the actual prefix that should be used (literally). For example, if your project is named 'sandbox', and the image file is 'red_logo.gif' then the 'src' setting would be 'site/red_logo.gif', not 'sandbox/red_logo.gif'.
    1818
    1919{{{
     
    172172Once you've created your custom template you will need to configure the webserver to tell Trac where the template is located (pls verify ... not yet changed to 0.11):
    173173
     174For [wiki:TracModWSGI mod_wsgi]:
     175{{{
     176os.environ['TRAC_ENV_INDEX_TEMPLATE'] = '/path/to/template'
     177}}}
     178
    174179For [wiki:TracFastCgi FastCGI]:
    175180{{{
    176 FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/parent/dir/of/projects
     181FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/parent/dir/of/projects \
    177182              -initial-env TRAC_ENV_INDEX_TEMPLATE=/path/to/template
    178183}}}
     
    214219
    215220Trac caches templates in memory by default to improve performance. To apply a template you need to restart the server.
     221
    216222----
    217223See also TracGuide, TracIni