Personalize field for image URL in emails | Community
Skip to main content
March 30, 2021
Solved

Personalize field for image URL in emails

  • March 30, 2021
  • 2 replies
  • 1821 views

Hi there,

 

I am creating an email template inside Adobe Campaign Standard which has some images. I would like to personalize the URL of the the images in the src attribute. I have created a custom resource inside ACS which contains a list of product names and their corresponding product image URLs. I would like to have this product image shown in the image element of my email page. I have tried enabling personalization in email designer page for my image element and tried including the product image URL field from my custom resource in the personalization field but that doesn't seem to work.

 

The code is used in src in img tag in  HTML email is below:

src="http://xxxx-mkt-stage1-res.adobe-campaign.com/" data-nl-imgep-perso-attr-src="http://xxxx-mkt-stage1-res.adobe-campaign.com/<span class="acr-field nl-dce-field" data-nl-expr="/context/targetData/image_link_1" data-nl-type="string" contenteditable="false">Image link 1 (image_link_1)</span>"

 

The data in the image link 1 field, is "res/xxxx_mkt_stage1/53191771c23cd4c8ea8f8ae7eb8b1a6d8d0d31c76b1110de3a31cd2bf3e86f29.jpg"

 

Thanks in advance. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lei-XWa
The img URL works as expected in the sent email , domain + img path. Imagines display finally.

2 replies

Adobe Employee
April 5, 2021

The sample code looks fine to me.

What is the actual behaviour you are experiencing here?

How does the image URL look like in the sent mail?

Lei-XWaAuthor
April 5, 2021
Looks good, thanks.
Level 2
August 10, 2021

Hi All,

I am also facing the same issue i have product links and i want to personalize them on the basis of product purchased by customer.

My src code looks like:-

<td align="center" valign="top" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;font-size:18px;line-height:24px;color:#58585B;text-align:center;padding-top:25px;"><a class="arc-link" data-nl-type="externalLink" href="#" data-nl-lnkep-perso-attr-href=""><img src="http://ifb-mkt-prod1-res.adobe-campaign.com/res/ifb_mkt_prod1/726ce0f5534bc0a7b46a8d8037448949.jpg" style="display:block !important;margin:0 auto !important;" class="nl-dce-personalized-image responsive-image1 index-imgPersonalizedOverlay--Lfwh5" data-nl-imgep-perso-attr-src-enabled="true" data-nl-imgep-perso-attr-src="https://imagestore.ifbhub.com/banners/&lt;span class=&quot;acr-field nl-dce-field&quot; data-nl-expr=&quot;/context/targetData/purchase_Banner&quot; data-nl-type=&quot;string&quot; contenteditable=&quot;false&quot;&gt;Purchase Banner (purchase_Banner)&lt;/span&gt;.jpg"></a> </td>

 

I have images hosted on different server.

Can anyone help me on this?

 

Regards,

Shubham