Configure the Magnolia Assets subapp
Magnolia Assets subapp is the Magnolia-native solution for simple Digital Asset Management (DAM) scenarios.
The Magnolia Assets subapp is installed with the dam-app-jcr
submodule and stored in /dam-app-jcr/decorations/dam-assets-app/apps/dam.subApps.yaml
.
For installation information, see DAM App module.
Configuration
Image manipulation actions such as resizing or cropping are provided by the UI Media Editor module.
Configuration of these actions can be found at /modules/ui-mediaeditor/mediaEditors/image
, with some of its parts defined in YAML-based decorations under /ui-mediaeditor/decorations/ui-mediaeditor/mediaEditors
.
Turning image thumbnails off in the asset browser
By default, image thumbnails are displayed next to the asset names in the asset browser.
This behavior can be changed by setting the thumbnails
property to false
for the jcrName
column (line 15 in the configuration snippet below):
workbench:
contentViews:
- name: tree
$type: treeView
dropConstraint:
$type: jcrDropConstraint
primaryNodeType: mgnl:asset
multiSelect: true
columns:
jcrName: &name
class: info.magnolia.dam.app.contentview.column.JcrAssetNameColumnDefinition
nodeTypeToComponent:
mgnl:folder:
icon: icon-folder
mgnl:asset:
icon: icon-assets-app
thumbnails: false
A universal icon is then displayed next to the asset names instead of thumbnails:
Workspace
The subapp operates on the JCR dam
workspace.
The dam
workspace stores the uploaded original assets and variations created with image operations such as cropping.
Node types
The DAM module registers a custom mgnl:asset
node type.
Magnolia Assets subapp operates on nodes of this type and on folders.
How to handle many assets
The DAM supports a large number of assets. However, if you have more than 10 000 assets, organize them into folders.
If your asset count significantly exceeds 10 000, consider integrating an external storage system using our External DAM integration framework, our DAM API, or one of our Incubator modules extensions.
For best performance with JCR assets, limit each folder to around 500 assets regardless of type (images, PDFs, etc.)
Use subfolders to stay organized and avoid performance issues.
-
Avoid placing too many assets in a single folder.
-
Use subfolders to improve performance and maintain structure.
Using the app
See Managing assets for how to use the subapp.