Managing assets

Browsing assets

You can browse the Magnolia DAM in three views:

  • Tree view

  • List view

  • Thumbnail view

Tree view displays a hierarchical tree, including the folder structure.

Magnolia Assets app - tree view

List view displays the items individually.

You can sort them alphanumerically by clicking the column headings.

Magnolia Assets app - list view

Thumbnail view displays thumbnail images of the assets. There is a zoom control at the top for resizing.

Magnolia Assets app - thumbnail view

How to handle large amount of assets

The DAM can handle a very large number of assets. However, if you have more than 20,000 assets, you should organize them into folders. If your number of assets drastically exceeds the 20,000 guideline, we recommend that you use an external storage system with our DAM Connector Pack, our DAM API, or one of our Incubator modules extensions.

How many assets should I put in a folder?

As a rule of thumb when using JCR for assets, you should keep it to about 500 assets per folder. This is independent of the asset type. So, whether it’s an image, pdf, or some other type of asset, let’s try to keep it under 500.

Avoid storing too many assets in the same folder. Instead, create subfolders and organize your assets. Storing too many assets within the same folder may lead to performance issues. If you need a large and unstructured flat list of assets, disable the thumbnail and list views.

Supported file formats for preview generation

Image formats

The most common image formats are supported, excluding:

  • image/x-icon

  • image/x-portable-bitmap

  • image/x-xpixmap

  • image/x-portable-graymap

  • image/x-cmu-raster

  • image/x-portable-pixmap

  • image/x-xbitmap

  • image/x-rgb

  • image/x-xwindowdump

  • image/x-cmx

  • image/cis-cod

  • image/ief

Video formats

The following video formats are supported:

  • video/mpeg

  • video/webm

  • video/mp4

  • video/ogg

Audio formats

The following audio formats are supported:

  • audio/mpeg

  • audio/webm

  • audio/mp4

  • audio/ogg

  • audio/aac

  • audio/aacp

  • audio/flac

  • audio/wav

  • audio/x-wav

  • audio/mp3

Searching for an asset

To search for an asset, use the Find Bar at the top of the UI:

Find Bar with results

You can also narrow your search. Click the funnel button on the right side and refine your search using the options provided:

Find Bar with search filter options

Uploading a single asset

To upload an asset:

  1. Select a parent folder or upload the image at the root level.

  2. Click Upload asset.

  3. Select a file to upload or drag and drop it into the Media field.
    Upload asset dialog

  4. The file uploads.

  5. For images, the image details and a thumbnail displays. You can edit the image in Magnolia.
    Uploaded asset with asset details

  6. For other assets, the file details and an asset type icon displays.

The filename field

In the default configuration, the dialog does not have a field for renaming the filename of the asset.

Filename field in the asset upload dialog

You can add the field to the dialog by hotfixing the configuration of the dialog.

In the Resource Files app:

  1. Open the /dam-app-jcr/dialogs/uploadAndEdit.yaml configuration file for editing.

  2. In the jcrDetail part, add the jcr:content: property shown below to the intended position of the filename field, for example just below the media upload field property.

  3. Save the updated configuration.

      class: info.magnolia.ui.editor.UploadViewDefinition
      required: true
        $type: jcrChildNodeProvider
        nodeName: jcr:content
        nodeType: mgnl:resource
      $type: compositeField
        $type: jcrChildNodeProvider
          $type: textField
          label: ""
      label: Filename

Afterwards, to bring the modified configuration to life, open /dam-app-core/apps/dam.yaml for editing and save it without changes.

You can touch any decoration that is part of the Dam app so that the included file changes would be picked up.

In a similar way, you can also modify the configuration of the Asset (node) rename dialog (/dam-app-jcr/dialogs/rename.yaml) to enable the filename field there as well:

Filename field in the rename dialog

Import a zip file with the assets app

You can upload a ZIP file in the Asset app in order to import multiple assets.

To import a ZIP file:

  1. Click Upload ZIP archive.

  2. Select a location. You can choose between:

    1. Extract into new folder – Adds a new parent folder (default).

    2. Extract here – Extracts the ZIP archive directly into the current folder.

  3. Browse to the file.

  4. In Encoding, select UTF-8 or CP437, depending on what system the ZIP file was created on.

  5. Click Save.

The assets are imported like this:

Extract into new folder Extract here

Assets to be extracted

Extracted assets

Uploading an asset from another app

You can upload an asset into the Magnolia DAM also from any other app that can browse the DAM, for example when creating a new contact in the Contacts app. The procedure and actions are identical to those in the Assets app and work in exactly the same way. You can define app-specific metadata fields which can be different from the standard metadata fields available when uploading in the Assets app.

Deleting an asset

Versioning is enabled in the DAM. This allows you to restore previous versions of an asset or folder. The delete action marks the node for deletion and the deletion is completed on publication of the deletion.

To delete an asset or folder:

  1. Select an item.

  2. Click Delete folder/asset.

  3. Confirm your action in the dialog.This marks the node for deletion and creates a restorable version. The item icon (folder or node) is replaced with the trash bin.

  4. Click Publish deletion to complete the deletion. At this point you can cancel the deletion by clicking Restore previous version.

Exporting and importing assets

In the dam workspace, asset data are stored as binary data under the jcr:data subnodes. If you export an asset (or folder) from the app, an XML file will be exported and the data will be part of it. An XML file is therefore expected if you want to import an asset.


To export an asset or folder:

  1. Select an item or folder.

  2. In the Action bar, click Export.

The exported XML file will contain also asset (folder) metadata such as mgnl:activationStatus. If you delete the asset on the author instance, publish the deletion and reimport the asset to the instance, the asset will retain the publication status even though it no longer exists on the public instance.


To import an asset or folder:

  1. Navigate to the location where you want to import the data.

  2. In the Action bar, click Import.

  3. In the Upload dialog, click Upload.

  4. Select an XML file or drag and drop it into the File area.

  5. Click Import.

Asset metadata

The metadata fields are located in the Asset dialog. You can set metadata when uploading or add/edit it by clicking Edit asset to open the dialog.

Magnolia native metadata

The system records certain data automatically, with such fields typically disabled. By default, the following fields cannot be edited:

  • Describe asset using: The supported metadata standard. By default, the Simple Dublin Core Metadata Element Set (DCMES) is supported. You can customize Magnolia to support different standards.

  • Identifier: An unambiguous reference to the resource within a given context. An alphanumerical string is used to identify and reference the asset. Editors can move assets without breaking links in the DAM.

  • Type: The nature or genre of the resource.

  • Creation Date: Date of upload.

  • Modification Date: Date of last modification.

  • Creator: An entity responsible for creating the resource (uploading the asset).

Dublin Core metadata

Magnolia supports the Simple Dublin Core Metadata Element Set (DCMES) standard by default and the following fields are available:

  • Caption: The asset caption.

  • Language: Language tag of the asset. Recommended best practice is to use a controlled vocabulary such as RFC 4646.

  • Title: Asset title.

  • Subject: The topic of the asset. Typically, the subject will be represented using keywords, key phrases, or classification codes.

  • Coverage: Scope of the asset. Typically this refers to a place, period or jurisdiction.

  • Description: Full description of the asset.

  • Publisher: Original publisher of the asset if being republished from another source.

  • Contributor: Use to name asset contributors.

  • Rights: Type of copyright.

  • Source: A related asset from which this asset is derived.

  • Relation: Related assets.

Setting alt attributes

The alt attribute of the img tag specifies alternative text for an image when that image cannot be displayed on a page. The standard rule is to use concise text that serves the same function as the image.


DX Core