The 5.7 branch of Magnolia reached End-of-Life on December 31, 2023, as specified in our End-of-life policy. This means the 5.7 branch is no longer maintained or supported. Please upgrade to the latest Magnolia release. By upgrading, you will get the latest release of Magnolia featuring significant improvements to the author and developer experience. For a successful upgrade, please consult our Magnolia 6.2 documentation. If you need help, please contact info@magnolia-cms.com.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

Modules

  • magnolia-dam-jcr
    • Magnolia specific DAM implementation based on JCR.
    • Stores DAM data in the JCR workspace dam.
    • Provides and configures the JCR specific AssetProvider 
      $webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") JcrAssetProvider
      .
  • magnolia-dam-imaging
    • The link between magnolia-dam-jcr and the Imaging module.
    • Provides and configures
      $webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") ImagingBasedAssetRenderer
      which is a
      $webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") AssetRenderer
      based on magnolia-dam-jcr.

Installing

Maven is the easiest way to install the module. Add the following to your bundle. The parent POM of your webapp project should set the latest version of the module automatically. Should you need to use a specific module version, you can define it using the <version/> in the dependency.

<dependency>
  <groupId>info.magnolia.dam</groupId>
  <artifactId>magnolia-dam-jcr</artifactId>
</dependency>
<dependency>
  <groupId>info.magnolia.dam</groupId>
  <artifactId>magnolia-dam-imaging</artifactId>
</dependency>

Magnolia DAM JCR configuration

As mentioned above, the configuration for  

$webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") JcrAssetProvider
 and 
$webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") ImagingBasedAssetRenderer
 are set by their modules. Finally the configuration looks like this:

Node nameValue

 
modules


 
dam


 
config


 
contentDisposition


 
providers


 
jcrProvider


 
renderers


 
imaging


 
class

info.magnolia.dam.imaging.ImagingBasedAssetRenderer

 
class

info.magnolia.dam.jcr.JcrAssetProvider

 
identifier

 jcr

 
renderers


 
noOp


 
class

info.magnolia.dam.core.NoOpAssetRenderer

Note: NoOpAssetRenderer is configured by DAM core module but is shown here the sake completeness.

  • No labels