In the HTML there is a div with background image as below:
<div class='item' style="background-image: url('../dummydata/images/carousel-chef.jpg');'>
I uploaded this image in Tridion, and created one component and selected that image. Now I am creating component template DWT and in that i am writing code as below to fetch the image from the component:
<div class="item" style="background-image: url('@@FieldStartMarker('hero_item_list[${TemplateRepeatIndex}].image')@@
@@FieldValueStartMarker()@@
@@GetFieldValue('hero_item_list[${TemplateRepeatIndex}].image', 0)@@
@@FieldValueEndMarker()@@
@@FieldEndMarker()@@');">
Note: hero_item_list
is an embedded field containing image.
but after publishing/previewing the component it is not resolving the link properly and generating output as:
tcm:55-711 ');">
extra characters are coming ');">
What should be the correct way of doing this?