pdf download

5 posts by 3 authors in: Forums > CMS Builder
Last Post: February 3, 2010   (RSS)

I created a multi record editor for the purpose of document management type system using categories. everything seems to work fine with one exception. the file name is the link to download the pdf file. There are the extra custom info fields. Default names = title and caption. I would like to be able to use one or the other of those as the link in place of the file name. I just tried using the generated code and turned off the echo for the file name and tried to add in the field name title / caption. I get error msg. I have search the forum, lots on using images for links but can't find what I need to do to use one of the custom info fields.

Thanks

.

Re: [vyskocil] pdf download

By Dave - February 3, 2010

Hi vyskocil,

The custom info fields for uploads are available as:
<?php echo $upload['info1'] ?>
<?php echo $upload['info2'] ?>

Give that a try or post a few lines of code that display your attachment and I'll take a look.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [vyskocil] pdf download

[:)]Thanks Dave,

It works well when using the correct names.

Re: [gkornbluth] pdf download

Thanks Jerry,

I did get your book. Lots of great information. Just didn't put two and two together. I was using the variable names and not the field names. There is sure lots of help in this forum. Thanks everyone.