I'm working on the code you gave me, helped by the Genshi documentation, and was wondering this may work if I add a header too. Indeed, in the code you did, you only edit what is just before <div id="main" />. That's what I want to do, that's good. But I'm also trying to change completely the header (not the banner, just the logo) at the same time, what requires, probably, to use the template on my second post... Or is there an other solution ? On the exemple you did, I have an idea, but I'm not sure it may work, can you give me your opinion about that code please ?
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:py="http://genshi.edgewall.org/" py:strip=""> <!--! Adding a personnal stylesheet --> <head py:match="head" py:attrs="select('@*')"> ${select('*|comment()|text()')} <link rel="stylesheet" type="text/css" href="${href.chrome('site/style.css')}" /> </head> <!--! Substitution of the header --> <py:match path="div[@id='header']" once="true"> <div id="siteheader"> My header </div> </py:match> <py:match path="div[@id='main']" once="true"> <div id="your-content"> Your content </div> <div py:attrs="select('@*')"> ${select('*|comment()|text()')} </div> </py:match> </html> If that is good, I think that this solution is much easier then the site.html available on the trac wiki. Thank you, Alvaro -- 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.
