On Thu, Sep 30, 2010 at 23:14, [Ricardo Rodriguez] eBioTIC. <[email protected]> wrote:
Hi Thomas,
Thomas Mortagne wrote:
Hi Ricardo,
The correct way to do that would be by implementing a rendering transformation. Transformations are called to modify the XDOM (document content in a Java object based model) before rendering it.
See http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule#HAddinganewTran...
I think I can, more intuitively that with real knowledge, understand what you are talking about.
The only problem is that there is one limitation currently: when you edit the a page with the WYSIWYG and save, the modified XDOM will be saved. We need http://jira.xwiki.org/jira/browse/XWIKI-3260 to fully support any possible modification to the XDOM (I'm currently working on it but it's a big work).
We don't use the WYSIWYG editor in concerned wiki: I'm working in a 1.3.x plain old wiki. It is currently being migrated to a 2.4.1 new farm. But even in this case I think I'm far from being able to implement this solution here. I see that we have not available information yet about "Adding a new Transformation".
Sorry i did not seen there was nothing in the section actually (I just took the link from the toc). Anyway adding a transformation just mean implementing the component interface org.xwiki.rendering.transformation.Transformation either in java or groovy. You can look at http://platform.xwiki.org/xwiki/bin/view/DevGuide/RenderingMacroTutorial to see how to implement a simple component.
The only solution that I currently see is replacing the strings stored in thar property to sore XWiki links there. Automatically or manually.
Any other idea will be really welcome!
Thanks!
-- Ricardo RodrÃguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne