
yoheeb at gmail
Nov 6, 2009, 1:26 PM
Post #4 of 7
(510 views)
Permalink
|
|
Re: Can I call a wiki-macro from another wiki-macro?
[In reply to]
|
|
On Nov 6, 3:23 pm, yoheeb <yoh...@gmail.com> wrote: > On Nov 4, 7:48 am, Olemis Lang <ole...@gmail.com> wrote: > > > > > On Wed, Nov 4, 2009 at 4:37 AM, ole.nomann <o...@uni-c.dk> wrote: > > > > Hi, I have some macros in in "/usr/share/trac/wiki-macros", that has > > > become standard header for any wiki-page. To facilitate creation of > > > new pages, I'd like to collect them in a single macro. So instead of: > > > > [[PageOutline]] > > > [[BackLinksMenu]] > > > [[Last(5)]] > > > > I can put > > > > [[MyHeader]] > > > > or perhaps > > > > [[MyHeader(5)]] > > > > All this without changing the original macros, as they are still used > > > as-is. > > > Can this be done? > > > Yes ! But you'll need to write some code ... > > > Example : In TracGViz plugin [1]_ GadgetAlias macro reuses iGoogleGadget macro > > > ;o) > > > .. [1] TracGViz plugin > > (https://opensvn.csie.org/traccgi/swlcu/wiki/En/Devel/TracGViz) > > > .. [2] TracGViz plugin - Download > > (http://pypi.python.org/pypi/TracGViz) > > > .. [3] iGoogleGadgetMacro & GadgetAliasMacro > > (https://opensvn.csie.org/traccgi/swlcu/pydoc/tracgviz.ig.wiki) > > > -- > > Regards, > > > Olemis. > > > Blog ES:http://simelo-es.blogspot.com/ > > Blog EN:http://simelo-en.blogspot.com/ > > > Featured article: > > I thought by default wiki macros could call other macros. Although in this case, you probably can use the include macro easier. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users [at] googlegroups To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|