Jul 26, 2007
静的リソースの trac.ini での指定方法
Trac の静的リソースには、個々の Trac インスタンス毎のものと、同一サーバ上の全 Trac から参照されるものの二種類がある。 それぞれストレージ上の設置場所が異なるので、trac.ini では指定方法をかえなければならない。 今回はロゴを変更したかったので、Trac インスタンス単位のリソースとして画像を設置してみた。
静的リソースの trac.ini での指定方法
- Trac インスタンス毎のリソース
- ストレージの "/usr/share/trac/htdocs/" が trac.ini の "common/" に相当する。
- 全 Trac から参照されるのリソース
- ストレージの "$TRAC_ENVIRONMENT_HOME/htdocs/" が trac.ini の "site/" に相当する。
http://www.example.com/trac/wiki/TracInterfaceCustomization
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).
ロゴの登録方法
$TRAC_ENVIRONMENT_HOME/htdocs/logo.png という名前でロゴ画像を設置し、trac.ini に
を指定する。[header_logo] height = -1 link = site/logo.png
TrackBack ping me at
http://www.in-vitro.jp/blog/index.cgi/Trac/20070726_01.trackback
writeback message: Ready to post a comment.
