How do I display a selected image in asset publisher template?How do I display a selected image in asset publisher template?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1208201992024-03-28T18:10:33Z2024-03-28T18:10:33ZHow do I display a selected image in asset publisher template?Chris Olzackihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1208201982021-06-09T20:13:14Z2021-06-09T19:42:53Z<p>I am trying to access an image that would have been selected in a web
content structure and display it an asset publisher template. I
created the template with the code below but instead of getting the
image location I end up with a list. How would I access the location
so that the images show? Thanks</p>
<p><#assign<br /> artImg =
saxReaderUtil.createXPath("dynamic-element[@name='Imagean48']")<br />
/><br /> <br /><#assign<br /> journalArticle =
renderer.getArticle()<br /> document =
saxReaderUtil.read(journalArticle.getContent())<br />
artImgCont =
artImg.selectSingleNode(rootElement).getStringValue()<br />
/><br /> <br /><img src="${artImgCont}"></p>
<p><img src=" {"
classpk":1923313,"groupid":"1912582","name":"spc_desktop_welcome_image3_benefits.jpg","alt":"man=""
in=""
suit","title":"spc_desktop_welcome_image3_benefits.jpg","type":"document","uuid":"db10a245-881c-d09c-ab64-4aeebc1581f0","fileentryid":"1923313","resourceprimkey":"2474428"}="" "="">