コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Where to place a component's image assets and how to access them on the page?

Avatar

Level 7

Hi,

I have a component that has a couple of images. These images are not customizable and are always the same. Where should I place these images?

Should I place it in the component folder's clientlibs directory (e.g. /apps/example/components/my-component/clientlibs) or should I place them in another folder? My concern about placing it in the clientlibs folder next to the app, is that folder is not permitted to be read by anonymous user on the publish instance.

Also how can I reference the images in my JSP file?

<img src="...">

Thanks in advance.

1 受け入れられたソリューション

Avatar

正解者
Level 10

Its best practice to place your images in the DAM and use the image component to display the images. 

You can also create a custom image component that displays DAM images:

http://helpx.adobe.com/experience-manager/using/aem-dam-image-components.html

元の投稿で解決策を見る

2 返信

Avatar

正解者
Level 10

Its best practice to place your images in the DAM and use the image component to display the images. 

You can also create a custom image component that displays DAM images:

http://helpx.adobe.com/experience-manager/using/aem-dam-image-components.html

Avatar

Level 10

You can place it in dam Or set glob permission to access from apps component image location.