As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
// Get the assets content stream InputStream stream = asset.getContentAsInputStream().getStream();
<#if locations?? && locations.assets?size != 0> <script type="text/javascript"> $("#gmap").gMap ( { markers: [ <#list locations.assets as location> <#assign coords = location.properties["cm:description"]?split(",")> { latitude: ${coords[0]}, longitude: ${coords[1]}, html: "here i would like to put the html content of my asset" }, </#list> ], zoom: 10 } ); </script> <#else> No locations ! </#if>
<#if locations?? && locations.assets?size != 0> <script type="text/javascript"> $("#gmap").gMap ( { markers: [ <#list locations.assets as location> <#assign coords = location.properties["cm:description"]?split(",")> { latitude: ${coords[0]}, longitude: ${coords[1]}, html: <@streamasset asset=location /> }, </#list> ], zoom: 10 } ); </script> <#else> No locations ! </#if>