Does anyone know, what Java class is used in Confluence Server to create the layout when comparing to different versions of a page?
I am thinking about some ideas to improve this layout by a custom plugin.
Best regards
Holger
Hi Holger,
The diff uses the diffpagesbyversion.action which is implemented by com.atlassian.confluence.pages.actions.DiffPagesByVersionAction
This class is mapped in xwork.xml
<action name="diffpagesbyversion" class="com.atlassian.confluence.pages.actions.DiffPagesByVersionAction">
<result name="error" type="velocity">/pages/viewpreviousversions.vm</result>
<result name="input" type="velocity">/pages/viewpreviousversions.vm</result>
<result name="success" type="velocity">/pages/diffpages.vm</result>
</action>
You can overload the action to use different velocity files to output your content.
Under the hood Confluence is using DaisyDiff.
Hope this helps you to get started.
Best, Tobias
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.