Page Lists show images by attribute, search result list doesn't

Permalink
Hi folks,
it is strange to me, that a custom page list shows images, if their weblinks are given as an attribute (coverlink). My search result list doesn't show them. See added pic...

I cannot use the code from the page list for the search results.
This causes an alert:Fatal error: Call to a member function getCollectionAttributeValue() on a non-object [...]

The Page List view.php code (until the image):
<?php 
   defined('C5_EXECUTE') or die(_("Access Denied."));
   $textHelper = Loader::helper("text");
   $imgHelper = Loader::Helper('image');
   $date = date('F j, Y', strtotime($page->getCollectionDatePublic()));
?> 
Derzeit eingestellt: 
<?php echo $pl->getTotal(); ?>
<br>
<br>
<ul class="display">
  <?php 
   for ($i = 0; $i < count($cArray); $i++ ) 
   {
      $cobj = $cArray[$i];


The result view.php (until the image):
<?php   defined('C5_EXECUTE') or die(_("Access Denied.")); 
?> 
<?php   if (isset($error)) { ?>
   <?php  echo $error?>
<br/>
<br/>
<?php   } ?>
<form id="searchQuery" action="<?php  echo $this->url( $resultTargetURL )?>" method="get">
  <?php  
$tt = Loader::helper('text');
if ($do_search) {
   if(count($results)==0){ ?>
  <?php echo t('There were no results found. Please try another keyword or phrase.')?>
  <?php  }else{ ?>
  <div id="searchResults">


A Live-View:
http://www.die-tonkunst.de/index.php/suche/?search_paths[]=&que...
http://www.die-tonkunst.de/index.php?cID=172#850...

Maybe it is quiet easy... ?

Thanks!

1 Attachment

MathiasB