Add Image Asset from Digital Asset Management¶
With the Digital Asset Management (DAM) system connector you can use assets such as images directly from the DAM in your content.
You can configure a connection with a Digital Asset Management (DAM) system.
1 2 3 4 5
The configuration for each connector depends on the requirements of the specific DAM system.
You can create your own connectors, or use the provided example DAM connector for Unsplash.
To add the Unsplash connector to your system add the
ibexa/connector-unsplash bundle to your installation.
Add Image Asset in Page Builder ¶
To add Image Assets directly in the Page Builder, you can do it by using the Embed block. The example below shows how to add images from Unsplash.
templates/embed/, create a custom template
1 2 3 4 5 6 7
770px parameter in the template above is used to render the DAM image. It is the
unsplash specific image variation and must be defined separately.
config/packages/ibexa.yaml, set the
dam.html.twig template for the
embed view type that is matched for the Content Type, which you created for DAM images.
For more information about displaying content, see Content rendering.
1 2 3 4 5 6 7 8 9
config/packages/ibexa.yaml add the following configuration:
1 2 3 4 5 6 7 8 9
You can customize the parameters according to your needs. For more information about supported parameters, see the Unsplash documentation.
In the Back Office, go to Admin > Content Types. In the Content group, create a Content Type for DAM images, which includes the ImageAsset Field.
Now, when you use the Embed block in the Page Builder, you should see a DAM Image.
For more information about block customization (defined templates, variations), see Create custom block.