Selecting Specific Upload from List

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 24, 2008   (RSS)

Re: [InHouse] Selecting Specific Upload from List

By Dave - April 24, 2008

No problem. We can make it work just about any way you could imagine with just a little bit of code. Try this:

<?php if (!$upload['isImage']): ?>
<a href="<?php echo $upload['urlPath'] ?>">Download PDF</a>
...


The ! means "not" as in "not image". Let me know if that does the trick or if you need something more.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Selecting Specific Upload from List

By InHouse - April 24, 2008

Hi Dave,

Yeah, I tried that but it didn't work as expected. I probably should have mentioned that this is being done in conjunction with the photo gallery code mentioned in:
http://www.interactivetools.com/forum/gforum.cgi?post=59842#59842

I'll PM you the files as they now include a series of ... well... includes.

J.