Magnolia 5.5 reached end of life on November 15, 2019. This branch is no longer supported, see End-of-life policy.
The Diff module enhances Magnolia core versioning functionality. The module uses the daisydiff Java library to compare two HTML files. Insertions are highlighted in green and deletions in red. Users can see exactly what has changed between two versions of the same content. The module is used by the Pages app to compare page versions. Line-by-line text comparison and changes in asset selection allow editors and publishers to see at a glance exactly what has changed. Diff functionality can also be enabled to compare changes to templates and resources edited in-line in the Standard Templating Kit.
<dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-module-diff</artifactId> <version>1.8</version> </dependency>
In most circumstances the Diff module requires no configuration.
You can configure the default settings for headers, cookies, host and port. See Diff implementation.