If a listing has an image it is displayed. If not then a default image is shown
I got this by adding the following code in details_link.html
<%if $content%>
<img src="<%$site_url%>/thumbs/<%$logo%>.jpg" /></a>
<%else%>
<img src="/images/nologo.jpg" /></a>
<%/if%>
Because i wanted the same on my home i added the following code in
block_random_listing_rows.html
<%if $content%>
<img src="<%$site_url%>/thumbs/<%$logo%>.jpg" /></a>
<%else%>
<img src="/images/nologo.jpg" /></a>
<%/if%>
Then i tried it with
<%if $logo%>
<img src="<%$site_url%>/thumbs/<%$logo%>.jpg" /></a>
<%else%>
<img src="/images/nologo.jpg" /></a>
<%/if%>
Then i tried it with another db field called logo2(with the name of the image)
<%if $logo%>
<img src="<%$site_url%>/thumbs/<%$logo%>.jpg" /></a>
<%elseif $logo2%>
<img src="/images/nologo.jpg" /></a>
<%/if%>
But nothing works. Why does it work in on the detail page, and not on the homepage?
Tom


