You can control the priority of a macro (i.e. the order in which it is processed) via an internal value “priority”.
You can also query some internal values within a macro of the type “XWiki.WikiMacroClass”.
Thus
xcontext.getMacro()[“context”].getId()
returns the name of the document from which the macro was called.
Thus
xcontext.getMacro()[“context”].getId()
gives the own priority of this macro (“100”)
My question:
Is there a possibility to set the priority, for example to achieve that similar to the toc macro, the macro is always executed at the end, or is this only possible with JAVA macros?
Norbert