Hi Marius,
this is not what i mean.
I want to change the content or the Parameter of a macro in java. I want to
load
/ DocumentModelBridge documentBridge =
this.documentAccessBridge.getDocument(includedReference);/
and then use
/ Block block = documentBridge.getXDOM().getRoot().getFirstBlock(new
MacroBlockMatcher("customMacro"), Block.Axes.DESCENDANT);
block.getParent().replaceChild() to change the content of the macro.
/
After that i want to render it with
/ result = this.documentDisplayer.display(documentBridge,
displayParameters);/
This code-snippets are from the java-include-macro and i want to change some
macro-code of the included document for displaying them different.
My problem is that i tried some different methods to overwrite the loaded
macro content, but nothing works.
Did you use somewhere a kind of that function?
Regards,
Matthias
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Inject-Parameter-in-a-macro-from-an-other…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.