Pagelist - display image (from attruibute)

Permalink
how can i edit a pagelist template to display an image with the thumbnail function i have attatched to the page with a page attriubte?

wizardontherun
 
DavidMIRV replied on at Permalink Best Answer Reply
DavidMIRV
something like this in the loop of your custom page list block view..
$fID = $cobj->GetCollectionAttributeValue('atr_handle');
echo '<img src="'. File::GetRelativePathFromID($fID) .'" />';
tommyh replied on at Permalink Reply
tommyh
Hi,

I am using custom thumbnail3 as the block template and my thumbs for the pages are not showing... The code is:

<div class="content_block">
                        <?php 
                        $pt = $cobj->getCollectionAttributeValue('page_thumbnail');
                        if($pt){
                           echo("<a href=\"$link\">");
                           $imgHelper->outputThumbnail($pt, 190,190, $title);
                           echo("</a>");
                        }
                        ?>


You think your fix will your fix work in my case as well?