AEM’s Associated content feature provides the connection so that assets can be optionally used with the fragment when it is added to a content page. This provides flexibility for your headless content delivery by providing a range of assets to access when using the content fragment on a page, while also helping to reduce the time required to search for the appropriate asset.
There are various methods of adding visual assets (e.g. images) to the fragment and/or page.
To make the association you first need to add your media asset(s) to a collection. After that is done you can:
Open your fragment and select Associated Content from the side panel.
Depending on whether any collections have already been associated, or not - select either:
Select the required collection.
You can optionally add the fragment itself to the selected collection; this aids tracking.
Confirm (with Select). The collection will be listed as associated.
Once you have associated a collection you can: