Re: [Maurice] preview thumbnail with pdf file
Hi Maurice,
Currently, it's only possible to CMS Builder to create a thumbnail of an image file.
If you have a graphic that you would like to display for a zip or a pdf file, you can check the uploads extension field and then output that a corresponding image.
For example:
<?php foreach ($record['upload'] as $upload):?>
<?php if($upload['extension']=="zip"):?>
*OUTPUT ZIP GRAPHIC*
<?php elseif ($upload['extension']=="pdf"):?>
*OUTPUT PDF GRAPHIC*
<?php endif ?>
<?php endforeach ?>
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/