Emmanuel Blot wrote:
As it seems that 0.11 starts to be stable enough, I'm planning to move
my servers from 0.10 to 0.11.
1. I don't know how to keep using our own site CSS files (not
documented yet on TracInterfaceCustomization, but I'm afraid I have
not read all the TracDev/ pages, maybe the solution is already
documented).
It seems that templates/site.html may help, but as it is rendered
before the <head> tag, I'm not sure how to use it.
Christopher Lenz sent this out a few months ago:
> Is there a guide out there, or at least some tips, for customizing
> the site layout with the new genshi version. In .10 there was
> "site_header.cs", "site_css.cs", and others but these have now been
> replaced by a "site.html" which simply says
> <!--custom match templates go here-->
Say you want to add a link to a custom stylesheet, and then your own
header and footer:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
py:strip="">
<!--! Add site-specific style sheet -->
<head py:match="head" py:attrs="select('@*')">
${select('*')}
<link rel="stylesheet" type="text/css"
href="${href.chrome('site/style.css')}" />
</head>
<body py:match="body" py:attrs="select('@*')">
<!--! Add site-specific header -->
<div id="siteheader">
...
</div>
${select('*|text()')}
<!--! Add site-specific footer -->
<div id="sitefooter">
...
</div>
</body>
</html>
This (and other examples) should go on the TracInterfaceCustomization
page for 0.11.
HTH,
Sid
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---