Displaying Attributes from Files issue
Permalink
I have an attribute for file type assigned to my files. So i can display an image next to the description of PDF files. I can list everything but show the image that I selected for the PDF file? any help would be great, below is what I have been trying.
Frank
<td style="color:blue;font-size:14px;" > <?php $title=""; $logo = $f->getCollectionAttributeValue('thumbnail'); if($logo){ $ih->outputThumbnail($logo, 130,130, $title); } ?> <a href="<?php print $f->getURL(); ?>"> <?php print $f->getTitle(); ?> </a> <img src="http://www.dadeservice.com/files/1112/9355/7158/pdf.png" width="30px" height="30px" align="middle"> <br /> <br /> </td>
Frank
bad day, forgot to post the error message if it helps?
-----------------------------
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'FileVersion::getCollectionAttributeValue' was given in /home/dreamsp5/public_html/dadeservice/updates/concrete5.4.1.1/concrete/models/file.php on line 37
-----------------------------
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'FileVersion::getCollectionAttributeValue' was given in /home/dreamsp5/public_html/dadeservice/updates/concrete5.4.1.1/concrete/models/file.php on line 37
this is pasted in the PHP Code block.