Re: images in template

Daniel Dekany <[email protected]> Mon, 20 Oct 2014 19:08:50 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
You mean multiple `feature`-s has the same code? Then maybe it's the
duty of the what prepares the data-model to group them together.
Especially if the features aren't sorted by code.


Monday, October 20, 2014, 2:05:05 PM, Emilio Otero wrote:

> Hi I'm newbie using the templates to show a query. My question is
> this. I'm trying to display images in my template, I have multiple
> images for an unique code, for example, code X23 has four images,
> and i don't know how to show only a code and the images it has associated.
> This is my code:
>
> <#list features as feature>
>     <div id="box">
>      <div id="boxCODE">Code: </div>
>      <div id="box2"><div id="boxCO">${feature.code.value}</div></div>
>      <div id="boxMAT">Mat: </div>
>      <div id="boxOB2"><div id="box3">${feature.mat.value}</div></div>
>      <div id="boxOB">Obj:</div>
>      <div id="boxOB2"><div id="box3">${feature.obj.value}</div></div>
>      <img src="http://localhost:8080/thumb/${feature.foto.value}">
>     </div>
>  </#list>
>
> anyone, could help me with this?
>
> thanks!!

-- 
Thanks,
 Daniel Dekany


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho