Content Diff module

Edition

Incubator (services)

Issues

Git

Git

Latest

1.0

Compatible with Magnolia 6.2.

The Content Diff module lets you compare your current content version with the previous version.

This module is at the INCUBATOR level.

Installing with Maven

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

<dependency>
  <groupId>info.magnolia.content</groupId>
  <artifactId>magnolia-content-diff</artifactId>
  <version>1.0</version>
</dependency>

Usage

This sections shows you how to configure and use the module.

Configuration

You can configure from which workspace properties should get reference values. This is done in your config.yaml file.

config.yaml
################# SPECIFY THE PROPERTY/WORKSPACE CONFIGURATION #################
referencedWorkspaces: # this configuration supports multiple workspaces
  property1: <workspace>
  property2: <workspace>
#  image: dam

You can also configure which property is excluded from the comparison. This is done in your contentDiff.yaml file.

contentDiff.yaml
################# SPECIFY THE DIALOG CONFIGURATION #################
form:
  properties:
    contentDiff:
      $type: contentDiff:contentDiffView
      depth: 5 (1)
      excludedNodeTypes: (2)
        - mgnl:componentVariants
        - mgnl:versionMetaData
      excludedNodeNames: (3)
        - footer
        - footer1
        - mgnl:versionMetaData
1 depth: the depth of the node you want to compare.
2 excludedNodeTypes: the specific node types to be excluded.
3 excludedNodeNames: the specific property names to be excluded.

Content Diff dialog

The Content Diff dialog shows the comparison result. The dialog shows these columns:

  • Property Name

  • Old Value

  • New Value

Table 1. Example
Property Name Old Value New Value

test.title

Old Title

New Title

test.title_de

Alter Titel

Neuer Titel

content diff header

Changelog

Version Notes

1.0

Initial release of the module.

Feedback

Incubators

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the Content Diff module docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules