Hi,

Newbie here.

In my db I have a link to a local image file located in static/images. From 
my index page I now want to show these images, but I can't figure out how 
to do that with the IMG helper function.

My code:
{{for movie in movies:}}
{{=IMG(_src=URL(r=request,c='static/images/',f='
{{=movie.local_poster_link}}'), _height=150)}}
Plot: {{=movie.plot}}<br>
Title: {{=movie.title}}<br>
Rating: {{=movie.rating}}<br>
Votes: {{=movie.votes}}<br>
Genre: {{=movie.genre}}<br>
{{pass}}

The value of movie.local_poster_link could be "mypicture.jpg" as an example.

How do I generate the correct IMG function call?

Thanks,

zeon

-- 



Reply via email to