PDF in Products

3 posts by 3 authors in: Forums > CMS Builder
Last Post: May 26, 2009   (RSS)

Re: [kcmedia] PDF in Products

By Perchpole - May 26, 2009

Hi, KC -

You need pose this as an IF statement along the lines of...

"IF the upload has a pdf extension then do xyz."

The statement can be expressed in code as follows:

<?php if ($upload['extension'] == 'pdf'): ?><img src="pdf_icon.gif" />
<?php elseif ($upload['extension'] == 'doc'): ?><img src="word_icon.gif" />
<?php elseif ($upload['extension'] == 'zip'): ?><img src="zip_icon.gif" />
<?php else: ?><img src="blank_icon.gif" />
<?php endif ?>




Hope this helps.

:0)

Perchpole

Re: [kcmedia] PDF in Products

By Damon - May 26, 2009

You can also add link icons using CSS:
http://www.askthecssguy.com/2006/12/showing_hyperlink_cues_with_cs_1.html
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/