Dear all,
we have the following code in a velocity token:
#set($downloadLink={
"BPDCS":{
"title":"BPD Case Study",
"link":"infos.inficiences.com/rs/593-IYJ-660/images/Inficiencespartners-casestudy-bpd-digitalisation-marketing-systeme-information-marketing-commercial.pdf"
},
"DACS":{
"title":"Deny All Case Study",
"link":"infos.inficiences.com/rs/593-IYJ-660/images/Inficiencespartners-casestudy-denyall-marketing-automation.pdf"
},
"IVCS":{
"title":"Infovista Case Study",
"link":"infos.inficiences.com/rs/593-IYJ-660/images/Inficiencespartners-casestudy-infovista-systeme-information-marketing.pdf"
},
"EBSCS":{
"title":"ESSEC Case Study",
"link":"infos.inficiences.com/rs/593-IYJ-660/images/Inficiencespartners-casestudy-essec-conception-deploiement-strategie-acquisition-nurturing.pdf"
},
"KDSCS":{
"title":"KDS Case Study",
"link":"infos.inficiences.com/rs/593-IYJ-660/images/Inficiencespartners-casestudy-kds-nouvelles-pratiques-generation-demande-automatisee.pdf"
}
})
<ul>
#foreach ($key in $lead.downloadcenter.split("[;]"))
#set ($key = ${key.trim()})
<li><a href="http://${downloadLink.get($key).link}" target="_blank" class="mktNoTrack">$downloadLink.get($key).title</a></li>
#end
</ul>
It works well. But if we remove the class="mktNoTrack" from the <a> tag, the links generated raise a DNS error:
any hint ?
-Greg
Solved! Go to Solution.
Let's reduce the problem surface. Does this happen if only a single <a> is output?
Hi Sanford,
<a href="http://${downloadLink.get($key).link}" target="_blank">$downloadLink.get($key).title</a>
Will raise the error, showing that the ${downloadLink.get($key).link} is apparently not resolved in the script. I also have tried to add a dummy class (class="whatever"), but the error remains.
<a href="http://${downloadLink.get($key).link}" target="_blank" class="mktNoTrack">$downloadLink.get($key).title</a>
Works perfectly well.
http://${downloadLink.get($key).link}
Works well, displaying the plain URL in the email.
I have set up a test program that can be fired here: Download Center Test-inficiences the email will have the 3 links
This seems to me like a bug.
-Greg