Skip to content

Instantly share code, notes, and snippets.

@randombrad
Created August 5, 2016 14:37
Show Gist options
  • Save randombrad/cbfabda796441841d14b3b9b59977a09 to your computer and use it in GitHub Desktop.
Save randombrad/cbfabda796441841d14b3b9b59977a09 to your computer and use it in GitHub Desktop.
Web Content Document URL in ADT
#if (!$entries.isEmpty())
#foreach ($curEntry in $entries)
#set ($docXml= $saxReaderUtil.read($curEntry.getAssetRenderer().getArticle().getContent()))
#set ($docUrl = $docXml.valueOf("//dynamic-element[@name='Attachment']/dynamic-content/text()"))
$docUrl
#end
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment