Page tree
Skip to end of metadata
Go to start of metadata

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.

Installing

Maven is the easiest way to install the module. Add the following dependency to your bundle:

<dependency>
  <groupId>info.magnolia</groupId>
  <artifactId>magnolia-module-diff</artifactId>
  <version>1.8</version>
</dependency>

Pre-built jars are also available for download. See Installing a module for help.

Configuration

In most circumstances the Diff module requires no configuration.

You can configure the default settings for headers, cookies, host and port. See Diff implementation.