How to display images on a blog app index view

23 views
Skip to first unread message

Ikem Frank Uzoma

unread,
Jun 26, 2019, 11:08:54 PM6/26/19
to web2py-users
Good day guys,
I just started using web2py and it is awesome. Thank you for this frame work.

I am building a blog app, how do I display images on the view displaying all my blog content.

Every tutorial have seen is displaying images on the detail view but I want to display both on my list view and detail view.

Ps:Images have been uploaded and is in my upload folder

Dave S

unread,
Jun 30, 2019, 3:45:21 AM6/30/19
to web2py-users
How are you displaying the list view?   

The basic answer to your question is that you need to add an IMG() item for each row.  How you do may depend on how you do your list view.   Is your upload field part of the same table you're displaying in the list?

/dps


Reply all
Reply to author
Forward
0 new messages