Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
The Diff module allows you to compare page versions. Content authors and reviewers can see exactly what has changed between two versions of a page with the redlining feature. It allows line-by-line comparison of text and also displays changes to media files such as images.
Diff is an enterprise module included in the Enterprise Edition bundle and typically already installed. Go to Magnolia Store > Installed modules in AdminCentral to check. To install the module individually, see the general module installation instructions.
See the general module uninstalling instructions and advice.
Magnolia 4.5.10/Diff 1.1.5 +. The default settings for headers, cookies, host and port can be set by configuration.
By default Magnolia is set to generate a JSESSIONID cookie. This is configured in
You can configure custom settings for:
cookies: You can specify any number of custom session cookie names to forward.
headers: The default value is
none. By adding a
headersconfig node you can specify any number of headers to be sent to the diff servlet thereby automatically excluding any headers that are not specified.
port: The default host and port is
8080. However, the Diff module will work even if you change the default Tomcat port. This means that you can use the diff functionality against another server.
Headers and cookies are configured separately.
VersionDiffHtmlServlet is registered in the Magnolia filter chain in
/server/filters/servlets/VersionDiffHtmlServlet. The controller generates the diff view between two versions of a page by checking the
fromVersionNr request parameters.
Here's a snippet from
diff.css (GIT) located in the
mgnl-resources folder of the module jar
See Viewing a version.