Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed the title starting with "How to ..."

This page describes how to handle images with Magnolia. This includes both storing the image or a reference to an asset with a dialog and rendering the image in a template script.

Table of Contents

Storing a reference of an asset from DAM with LinkField and damfn


Bestpractice

Magnolia recommends using the Digital Asset Management module to manage binary assets such as images (videos and so on) by using the Assets app.

damfn templating functions let you access images stored in the DAM.

Manage your assets in one central location and reuse them in many different contexts. For example, you can add the same image to a page on your website or to a content item from a content app. To do so:

...

This approach is explained in more detail in working with images using damfn.

Storing in the same workspace with BasicUploadField and imgfn

Info

imgfn templating functions provide access to images stored in every workspace in the JCR.

...

This approach is explained in more detail in working with images using imgfn.