[#list content.pictures as p] <li value="${p_index+1}"> <img src="${p.imgPath}"> </li> <script type="text/javascript"> imgsrc[${p_index+1}]="${p.imgPath}"; pictitle[${p_index+1}]="${p.description?trim?replace('\r\n','')}"; </script> [/#list]