Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Embed image asset in my custom component using CRXDE Lite

Avatar

Level 3

Dear all,

I am trying to make a custom header component. I drafted the html separately and put it under my project/components/content.

So far is all good except that I couldn't find the logo image in CRXDE. My idea was like upload the image to asset file at instance, then locate it in CRXDE so I can paste the path in my .html file under components/content/header/header.html.

I thought the image asset would have been stored in dam but it's not, could anyone kindly tell me where should I go to get the asset in CRXDE or perhaps I should do it in another way to embed image in my component?

Thank you very much!

1 Accepted Solution

Avatar

Correct answer by
Level 3

Dear folks,

 

I found the way to do so. Put my solution here:

1. Upload the image file to your asset folder at instance

2. Click into the file and copy the URL then remove "assetdetails.html" in the URL

3. Paste this URL as src in the .html file of target component 

 

Notice: the solution is only for those images or icons people don't change frequently, e.g., print icon, arrow icon 

View solution in original post

0 Replies

Avatar

Correct answer by
Level 3

Dear folks,

 

I found the way to do so. Put my solution here:

1. Upload the image file to your asset folder at instance

2. Click into the file and copy the URL then remove "assetdetails.html" in the URL

3. Paste this URL as src in the .html file of target component 

 

Notice: the solution is only for those images or icons people don't change frequently, e.g., print icon, arrow icon 

Avatar

Administrator

@YuSheng Thank you for sharing the answer. This would help the AEM community in posterity.