Shameless Plug:
If you want a document listener as a wiki page, you can check out)
http://extensions.xwiki.org/xwiki/bin/view/Extension/RepairWikiLinks
(install/import it into a demo instance and look at the page
XWiki.RepairWikiLinksOnPageSave in the object editor).
If you want to implement a java based component, you can look e.g. in the platform for
code examples:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Cheers,
Clemens
---
From: Wei He
On: Tuesday, 10.05.2016, 22:49
To: XWiki Users
Subject: [xwiki-users] Document save hook to modify content
Hi,
I want to modify document content while user is saving a document, for
example: [[PageA]] will be replaced by [[PageA.WebHome]]. I want to write a
component extension to do that. Which component should I look into?
Thanks,
Wei