Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Dynamic PDF Links

 

 


virgodesign
User

Feb 18, 2008, 4:57 PM

Post #1 of 5 (438 views)
Shortcut
Dynamic PDF Links Can't Post

Hi again,

On my current client site where I am using CMSB, here is what I want to do. Upload PDF files, no problem there (I think).

But I want to automatically create a URL link to that file, so the client doesn't have to enter that and have it automatically link to that file when its listed on the page.

Doable or hire php programmer ?

Thanx so much
Avrom


Dave
Staff / Moderator


Feb 18, 2008, 8:24 PM

Post #2 of 5 (435 views)
Shortcut
Re: [virgodesign] Dynamic PDF Links [In reply to] Can't Post

Can you give me a bit more detail on how you want that to work?

There's a few options. You can upload pdfs through the wysiwyg (by enabling uploads and allowing .pdf) and then upload them by clicking the link button and then browse.

You could upload them through an upload field and have download links automatically added to the display page.

Are either of those close?

Dave Edis - Senior Developer
interactivetools.com


virgodesign
User

Feb 18, 2008, 8:56 PM

Post #3 of 5 (434 views)
Shortcut
Re: [Dave] Dynamic PDF Links [In reply to] Can't Post

Hi Dave,

Almost! I would like to upload the pdf through an upload field and have a link attached to the file name (specified by the user).

i.e. ThisPDFfile (as the user named it) has an embedded link to the uploaded file.

Cheers, does that make sense ?

Much thanx.


Dave
Staff / Moderator


Feb 18, 2008, 9:08 PM

Post #4 of 5 (432 views)
Shortcut
Re: [virgodesign] Dynamic PDF Links [In reply to] Can't Post

Ok. So you want the client to be able to specify the text that is displayed in the link to the PDF? Is that right?

If you're using a recent version of CMS Builder you can specify the Title and Caption for each upload (and those fields can be added in the field editor).

Instead of the standard code that displays an upload:


Code
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>


You could have it display the title (info1) or caption (info2) or another field you add (info3,4,5) in the link like this:


Code
<a href="<?php echo $upload['urlPath'] ?>"><?php echo $upload['info1'] ?></a><br/>


Would that work?

Dave Edis - Senior Developer
interactivetools.com


virgodesign
User

Feb 18, 2008, 9:11 PM

Post #5 of 5 (431 views)
Shortcut
Re: [Dave] Dynamic PDF Links [In reply to] Can't Post

Bingo... Mucho Thanks :) Have a nice evening Dave.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4