Sorry if i didn't do it right the fist time. I'll try to behave in the future :-)
The images are showing up when i use this code:
<?php if ( is_file( JPATH_ROOT.DS.'images'.DS.'com_jea'.DS.'images'.DS.$row->id.DS.'min.jpg' ) ) : ?>
<dt class="image">
<a href="<?php echo $this->getViewUrl ( $row->slug ) ?>" title="<?php echo JText::_('Details') ?>">
<img src="<?php echo JURI::root().'images/com_jea/images/'.$row->id.'/secondary/' .$row->thumb1?>" width="130" alt="<?php echo JText::_('Detail') ?>" />
</a>
</dt>
<?php endif ?>
What i would like to do is to hide empty image fields if there are no images. I used this code, but it doesn't function:
<?php
if($row->thumb1 > 0){
?>
<?php if ( is_file( JPATH_ROOT.DS.'images'.DS.'com_jea'.DS.'images'.DS.$row->id.DS.'min.jpg' ) ) : ?>
<dt class="image">
<a href="<?php echo $this->getViewUrl ( $row->slug ) ?>" title="<?php echo JText::_('Details') ?>">
<img src="<?php echo JURI::root().'images/com_jea/images/'.$row->id.'/secondary/' .$row->thumb1?>" width="130" alt="<?php echo JText::_('Detail') ?>" />
</a>
</dt>
<?php endif ?>
<?php
}
?>
Please see attached picture. Thanks in advance