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.
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.