I wrote: > We use Trac at work to manage our monthly sprints, each sprint being a > milestone. We have a number of reports to see how we are doing and > they take the milestone as a parameter. For each milestone I make the > milestone page contain links to the reports with the correct milestone > parameter. > > Copy/pasting the previous milestone page and updating the parameters > every month has become a bit boring, though. I wish I could somehow > set the MILESTONE variable once in the page. Better yet, I wish I > could include the page template giving the MILESTONE as an argument to > the page! > > Anyone working on something like this?
I just found out that there is an Include extension that accepts parameters and with that I can make a common template for the milestones and then in each milestone page just call the template with a suitable parameter. Seems to work so far. I guess this also tells something about Trac and its plugins: it took me this long to realize that the feature I was looking for actually existed as a plugin. And not just in one plugin, but three! There is WikiInclude macro, then there is WikiIncludePlugin, which says WikiInclude macro is broken and then there is TracWikiTemplates plugin that tells WikiInclude macro is broken and that TracWikiTemplates won't work with Trac 0.11. None of those has documentation comparable to core Trac features. I chose WikiIncludePlugin and am now hoping that stays functional so I don't have to switch to another plugin and convert my template pages to another syntax in the future. Having one well-documented and working "official" plugin would be nice, but I don't know how to achieve that. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" 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-dev?hl=en -~----------~----~----~----~------~----~------~--~---
