Magnolia 5.3 reached end of life on June 30, 2017. This branch is no longer supported, see End-of-life policy.
This page is about DAM 1.x. The way assets are registered and used changed. If you work with
Magnolia 5.3+, see Digital Asset Management module .
The Digital Asset Management module 1.x installs the Assets app 1.x. For more information about working with the DAM see Digital asset management.
The Digital Asset Management (DAM) module provides the functionality to manage assets such as images, videos and documents and use them on the website. The module installs the Assets app 1.x.
See Digital asset management on how to use the features provided by this module.
The DAM module is bundled with Magnolia and typically already installed. You can download it from our Nexus repository.
Digital Asset management is a Community Edition module. It is typically already installed. Launch the Configuration app and go to /modules/dam
to check.
The DAM is configured in /modules/dam
:
Node name | Value |
---|---|
dam | |
apps | |
config | |
dialogs | |
commands | |
fieldTypes |
Folders:
apps
: Assets app 1.x configuration.config
: Media types and content disposition header exclusion configurations.dialogs
: Dialog definitions used by the Assets app and other apps.commands
: markAssetFolderAsDeleted
command definition.fieldTypes
: DAM upload field definition.The DAM supports the following media types: image
, audio
, video
, document
, flash
and application
.
Media types are configured in the /dam/config/mediaTypes
node. The link between the MimeType
and the MediaType
is done by configuration and RegexVoters
. For more information see Renditions and media types.
Here's an example configuration for the audio
media type.
Node name | Value |
---|---|
dam | |
config | |
mediaTypes | |
audio | |
voter | |
class | info.magnolia.dam.util.RegexVoter |
pattern | audio/.* |
It is possible to configure the handling of
headers for all content in the DAM in the Content-Disposition
/dam/config/contentDisposition
node. By default the DAM is configured to not serve the Content-Disposition
header for flash and video files. All other content is served with the Content-Disposition
header enabled by default. If you need to disable serving content with Content-Disposition
header for other content types, add their MIME types to /dam/config/contentDisposition/contentType/rejected
.
Node name | Value |
---|---|
dam | |
config | |
contentDisposition | |
contentType | |
rejected | |
1 | application/x-shockwave-flash |
2 | video/mp4 |
class | info.magnolia.voting.voters.ResponseContentTypeVoter |
class | info.magnolia.voting.voters.VoterSet |
To disable serving the Content-Disposition
header based on path follow these steps:
inline
under contentDisposition
.class
and set the value to info.magnolia.voting.voters.URIStartsWithVoter
.pattern
and set the value to /dam/inline
.not
and set the value to true
.This will configure all files in folder inline
to be sent without content disposition headers. The new content node should look like this:
Node name | Value |
---|---|
contentDisposition | |
inline | |
class | info.magnolia.voting.voters.URIStartsWithVoter |
not | true |
pattern | /dam/inline |