Ο/Η Thomas Moschny έγραψε: > On Friday 02 February 2007 14:38, Ilias Lazaridis wrote: > > I would like to provide a wiki template in order to include the > > TracNav Macro (and some others) by default. > > > > Is there any mechanism available to call macros from within templates? > > I guess you already tried the various incarnations of WikiInclude > macros/plugins and the TracWikiTemplates plugin, and that didn't work?
this would not work by design. The requirements are: * no need to modify the wikipages * ability to switch the extension on/off (Component) I've implemted this manually for the AutoNav Macro. If the component "WikiBacklinks" is enabled, the AutoNav result becomes available on every page: http://dev.lazaridis.com/base/browser/infra/tracx/tracx/menus.py?rev=162#L110 But this is not a generic solution (e.g. applicable to the TracNav or other macros), because i use a copy of the macro and insert it's output over a variable into a custom template. So my request is essentially, how would one implement such a solution in a generic way? class WikiApplyMacroToAllPages(Component): # which event to claim # how to access/call a macro <access-path>.MacroName.<function>(<parameters>) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
