> Pablo, I am looking for EXACTLY this as well. It would be great if the > authors of Trac could put an example together on how they did this.
I was looking for the same feature a couple of days ago, so I wrote this as the "global" site template: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" py:strip=""> <head py:match="head" py:attrs="select('@*')"> ${select('*')} <link rel="stylesheet" type="text/css" href="${href.chrome('common/css/style.css')}" /> </head> <body py:match="body" py:attrs="select('@*')"> <div id="site-header"> <div id="topnav"> <ul> <!--! Place your header content here... --> <li py:for="prj in ('project1','project2','project3')" py:choose="" class="${classes(active=context.href().endswith(prj))}"> <a href="${context.href().replace(context.href()[1+context.href().rfind('/'):],prj)}" >${prj[0].upper()}${prj[1:]}</a> </li> </ul> </div> </div> ${select('*|text()')} <div id="neo-footer"> <!--! Place your footer content here... --> </div> </body> </html> Note that the project names are not extracted from Trac but hardcoded. This list could probably be extracted from Trac itself (as it's already implemented to generate the list of the available projects), however I haven't looked further to obtain this list from the template file without having to patch the original Trac code. The site.html code snippet produces a list of project. To make the list appears as a horizontal bar, you need to add some CSS style. Have a look at trac.edgewall.org 'projects.css' file to get an example, especially the "topnav" definitions. My own CSS definitions are stored in the common CSS file "style.css" so that the CSS definitions are identical for all the projects. HTH, Manu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
