Edgewall Software

Changes between Version 4 and Version 5 of 1.3/TracInterfaceCustomization


Ignore:
Timestamp:
Jul 6, 2019, 5:40:10 AM (3 months ago)
Author:
Ryan J Ollos
Comment:

Break out section to make it more easily seen (gmessage:trac-users:MTmK8INsi4g/NEHwI27WBQAJ).

Legend:

Unmodified
Added
Removed
Modified
  • 1.3/TracInterfaceCustomization

    v4 v5  
    117117This example illustrates a technique of using `req.path_info` to limit scope of changes to one view only. For instance, to make changes only for timeline and avoid modifying other sections, use `req.path_info == '/timeline'` as the condition in a `# if` test.
    118118
    119 More examples snippets for placeholsder files can be found at [trac:wiki:CookBook/SiteHtml CookBook/SiteHtml].
     119More examples snippets for placeholder files can be found at [trac:wiki:CookBook/SiteHtml CookBook/SiteHtml].
    120120
    121121Example snippets for `style.css` can be found at [trac:wiki:CookBook/SiteStyleCss CookBook/SiteStyleCss].
    122122
    123 Note that these `site_*.html`, despite their name, can be put in a shared templates directory, see the [[TracIni#inherit-templates_dir-option|[inherit] templates_dir]] option. This could provide easier maintenance as global `site_head.html`, `site_header.html` and `site_footer.html` files can be made to `# include` any other local existing header, footer and newticket snippets.
     123=== Sharing Templates in Multiple Environments
     124
     125The `site_*.html` templates, despite their name, can be put in a shared templates directory, see the [[TracIni#inherit-templates_dir-option|[inherit] templates_dir]] option. This could provide easier maintenance, as global `site_head.html`, `site_header.html` and `site_footer.html` files can be made to `# include` any other local existing header, footer and newticket snippets.
    124126
    125127== Project List #ProjectList