I am facing a problem similar to the one presented in the follwing
post:
http://groups.google.com/group/web2py/browse_thread/thread/dbde3f153f2b776c/66de4de738e36031?lnk=gst&q=uploads#66de4de738e36031
So far, I haven't been able to construct a solution from the entries
in this thread, I hope one of you will help me do so.
I have a view with a number of <div></div> elements, basically I want
to give users the option of setting a background image to these <div></
div> elements. Therefore, these <div></div> elements all have a
different id, which is stored in a database table.
In the view I construct a stylesheet which, amongst others, contains
the following lines of code:
{{for record in records: }} #{{=record.tag}} { background-image: url
('../uploads/{{=record.image}}') ;
{{pass}}
This doesn't work. However, when I move the images to the images
folder in the static folder the following lines of code do work:
{{for record in records: }} #{{=record.tag}} { background-image: url
('../static/images/{{=record.image}}') ;
{{pass}}
Since I don't want to bypass the uploads functionality in web2py, I am
looking for a solution as described in the thread above.
Best regards,
Annet.