Home : Products : DBMan SQL : Discussion :

Products: DBMan SQL: Discussion: Re: [Suomi] Thumbnail image?: Edit Log

Here is the list of edits for this post
Re: [Suomi] Thumbnail image?
Hi,

You have to modify the search_results.html (or *_results.html) in default template. The command below should show the picture up:

<img src="db.cgi?cn=picture_field_name&do=view_file&db=<%db%>&id=<%primary_key_field%>">

So just replace:
<%loop results%>
<p><%Dbsql::HTML::generate_search_results%>
<%endloop%>

With:
<%loop results%>
Item: <%item%>
Price: <%price%>
Quantity: <%quantity%>
<%if picture%>
Picture: <img src="db.cgi?cn=picture&do=view_file&db=<%db%>&id=<%item%>">
<%endif%>
<%endloop%>

Hope that helps.

Cheers,
TheStone.

B.

Last edited by:

TheStone: Dec 13, 2001, 9:53 AM

Edit Log: