Content Diff module
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. |