Edgewall Software

Changes between Version 80 and Version 81 of TracInterfaceCustomization


Ignore:
Timestamp:
Jan 11, 2015, 7:37:38 AM (9 years ago)
Author:
Ryan J Ollos
Comment:

Clarify that the site prefix maps to the Environment htdocs directory. Refs #11774.

Legend:

Unmodified
Added
Removed
Modified
  • TracInterfaceCustomization

    v80 v81  
    9595}}}
    9696
    97 Notice that XSLT bears some similarities with Genshi templates. However, there are some Trac specific features, for example `${href.chrome('site/style.css')}` attribute references a CSS file placed into the environment's `htdocs/` directory. In a similar fashion `${chrome.htdocs_location}` is used to specify the common `htdocs/` directory belonging to a Trac installation. That latter location can however be overriden using the [[TracIni#trac-section|[trac] htdocs_location]] configuration setting.
     97Notice that XSLT bears some similarities with Genshi templates. However, there are some Trac specific features, for example the `${href.chrome('site/style.css')}` attribute references `style.css` in the environment's `htdocs/` directory. In a similar fashion `${chrome.htdocs_location}` is used to specify the common `htdocs/` directory belonging to a Trac installation. That latter location can however be overriden using the [[TracIni#trac-section|[trac] htdocs_location]] configuration setting.
    9898
    9999`site.html` is one file to contain all your modifications. It usually works using the `py:match` directive (element or attribute), and it allows you to modify the page as it renders. The matches hook onto specific sections depending on what it tries to find and modify them.