Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Linking to a file

From: Dreamweaver CS3 Essential Training

Video: Linking to a file

One of the most common questions I'm asked in regards to creating links is, how do I create a link to a PDF file, or some other type of file? It's really not that different from linking to a web page. When you're creating links, you're not limited to just linking to another web page. You can actually link directly to a PDF files, images, videos, and tons of other types of files. As a general rule, if it's a file that can be displayed in a web browser, you can link to it. Even if it's a file that can't be displayed on a web browser, you can usually still provide a link so, your visitors can download that file. So, for an example let's take a look at how to link to a PDF file.

Linking to a file

One of the most common questions I'm asked in regards to creating links is, how do I create a link to a PDF file, or some other type of file? It's really not that different from linking to a web page. When you're creating links, you're not limited to just linking to another web page. You can actually link directly to a PDF files, images, videos, and tons of other types of files. As a general rule, if it's a file that can be displayed in a web browser, you can link to it. Even if it's a file that can't be displayed on a web browser, you can usually still provide a link so, your visitors can download that file. So, for an example let's take a look at how to link to a PDF file.

You're probably familiar with PDF documents. PDF is Adobe's Portable Document Format, which allows you to distribute documents, and maintain their exact look and feel. And PDF documents can be opened by all Macs, and any Windows machine that has the free Adobe {italic}Reader{plain} installed. So, let's take a look at how we create a link to a PDF file. I'm just going to come in here and close the page that we're working on in the previous movie. And let's open up kettlesandteapots. And this is just a list of the different kettles that are carried by teacloud. And I'm going to come in here and create a link. So, I'll click my curser next to "While There's Tea There's Hope".

Create a new line, and let's type "View a PDF version of our Kettles & Teapots brochure". And I want to turn the phrase "PDF version" into my link. And I do have a PDF sitting here in ourproducts in kettlesandteapots, there's a kettlelist.pdf file. Now, let me hide {italic}Dreamweaver{plain} for a moment, and in my actual site folder, let's go look at this file. There's kettlelist.pdf, we'll open that up.

And you can see this is just a printable version of the same page that we're looking at. I want to provide this so, if people want to be able to print out this page, they can download this PDF, and then print it out. Let's go back to {italic}Dreamweaver.{plain} To create a link from this selected text to the actual PDF file is no different than linking to a web page. My text is selected, I can come down to the Properties Inspector, and I'm going to use Point to File, and just point at that PDF file. You can see now it says "kettlesandteapots/kettlelist.pdf". There's my link.

Let's go ahead, and save this page, and let's test it. Here's the page. There's my link, and then when I click on it, I'm now looking at the PDF version of the page. Pretty cool, and as long as the user has the Adobe {italic}Acrobat {plain}, or PDF plug-in installed on his or her browser, they'll be able to see your PDF's. Again, most people are going to have that plug-in installed, but just in case they don't, it's a common practice to include something.

"(viewing requires Adobe Reader)". It's a common practice to provide a link to the Adobe website so the user can download the Adobe {italic}Reader{plain} if they don't have it installed. So, I'm just going to go ahead and do that. I'll go to adobe.com. And right on the front page I'll usually find this "Get Adobe Reader" button. And this is the page where they can then choose the version of the Adobe {italic}Reader{plain} that they need, whether it's going to be Windows, Mac, or Unix, or so on. And they can download this free Adobe {italic}Reader{plain} program from here. So, I'm going to grab this URL here. Copy it. Come back in here, and just select Adobe {italic}Reader,{plain} and paste in that link. That's basically a courtesy.

If the user does not have {italic}Acrobat{plain} installed on his, or her computer, you want to make sure to provide a link to the download area. But basically that's how you link to a file. Again, it's not that different from linking to a page. Just select the text that you want to turn into a PDF, and just point right at the file. And again, you can link to PDF files, or images, or videos, again as long as the plug-in is installed you'll be able to display it. A lot of people like to link directly to images if they're too busy, or too lazy to create a page to hold the image. For example, if I come down here, and I type something like "View image", just as an example here.

I'm going to link to this exact image. Let's go to look inside assets > images > products > kettles, and I'll just link to an image. And I think this is the one I want here. Let's expand a little bit more here. Yes, I want this "teacloud-azul", and we'll link to that. So, I'm linking not to a page, but I'm linking to an actual JPEG file here. Let's see what that looks like. Click on my link.

And you can see, it just displays the image. There's no page containing it. You can see right here in the address bar, this is actually just the image. So, linking to the image, no different there. Don't really need that though. Let's go, and delete that. There may be times when you want to link to a file that is not meant to be displayed inside a browser window. For instance, maybe you want to link to a Microsoft {italic}Word{plain} document, or {italic}Photoshop{plain} document. Those can't really be displayed in a browser window, but you still want to link to them. Technically, you could create a link right to those documents wherever they're sitting in here in your Files panel, but some browsers misinterpret that, and they will actually display a whole bunch of gibberish when you link to files like that. It's better to zip up the file. When you zip up a file, you're actually compressing it, and that compressed file will automatically download the users computer when he or she clicks on that file.

In my site folder here, I do have a zipped version of the page here called "kettles.zip". If I double click on that, you can see that expands into "kettles", and actually it contains those three images of the kettles in here. Now, how do you create a ZIP file? Well, on a Mac it's really easy to do. Let me just delete the one that's here, so, I can show you how to create a fresh one. Just select the folder, or the file that you want to zip up, right or Ctrl-click on the Mac, and let's choose Create Archive of the file, and that's how easy it is.

It's right there, and if I want to link to that, I can come in here. "Download the images of our kettles", and I'll just take the word "images", and I'll link right to that ZIP file, and that's it. When somebody clicks on a link, they'll download that zip file, they can double-click on it, and it will automatically expand. Now, if you're using Windows, a lot of the time you're not going to have built in ZIP capabilities.

If you want to be able to zip up files, you have to go to winzip.com, and buy a copy of WinZip so you can zip up files. Of course, Mac users have that functionality built in. Windows users will have to purchase, and download the program if they want to be able to zip up files. But the advantage of zipping up a file is that you can take any kind of file, and zip it up, so you can zip up {italic}Photoshop{plain} files, {italic}Word{plain} files, {italic}Excel{plain} files, any type file you want, and as soon as it's zipped up, that's automatically a downloadable version of the file. Ok, so, that's all about linking to files that are not web pages. Again, it is really no different.

Just select the text, or the image that you want to turn into a link, and point right at that file to create your link.

Show transcript

This video is part of

Image for Dreamweaver CS3 Essential Training
Dreamweaver CS3 Essential Training

129 video lessons · 86931 viewers

Garrick Chow
Author

 
Expand all | Collapse all
  1. 1m 12s
    1. Welcome
      1m 12s
  2. 21m 0s
    1. HTML vs. XHTML
      3m 4s
    2. What is CSS?
      3m 48s
    3. What is XML?
      2m 11s
    4. What is DHTML?
      1m 9s
    5. What is JavaScript?
      1m 23s
    6. File naming conventions
      3m 22s
    7. What is an index page?
      6m 3s
  3. 46m 18s
    1. Setting up your workspace
      2m 39s
    2. The Welcome screen
      4m 11s
    3. Windows and Mac differences
      3m 18s
    4. The Insert bar
      4m 38s
    5. The Property Inspector
      1m 50s
    6. The Document toolbar
      6m 6s
    7. The Document window
      9m 11s
    8. Panels and panel groups
      6m 58s
    9. Saving workspace layouts
      2m 22s
    10. Defining a default browser
      5m 5s
  4. 24m 59s
    1. Defining a site
      9m 5s
    2. File and folder management
      3m 11s
    3. Understanding path structure
      3m 17s
    4. Adding content to a site
      6m 6s
    5. Creating a site map
      3m 20s
  5. 38m 39s
    1. Creating a new blank site
      6m 0s
    2. Creating and saving a new document
      7m 54s
    3. About DOCTYPE
      3m 59s
    4. Inserting images
      9m 26s
    5. Inserting text
      3m 35s
    6. Aligning text and images
      4m 9s
    7. Inserting meta tags
      3m 36s
  6. 45m 58s
    1. Link basics
      6m 4s
    2. Linking with Point to File
      5m 18s
    3. External links
      4m 15s
    4. Creating email links
      5m 49s
    5. Named anchors
      7m 37s
    6. Linking to a file
      7m 35s
    7. Image maps
      9m 20s
  7. 1h 8m
    1. About CSS
      4m 52s
    2. Anatomy of a style sheet
      4m 10s
    3. CSS and page properties
      10m 11s
    4. Moving an internal style sheet to an external style sheet
      6m 46s
    5. The CSS Styles panel
      3m 48s
    6. CSS selectors
      2m 37s
    7. Type selectors
      12m 13s
    8. ID selectors
      10m 21s
    9. Class selectors
      5m 42s
    10. Creating rollovers with pseudo-class selectors
      7m 22s
  8. 42m 54s
    1. CSS vs. the Font tag
      2m 42s
    2. Formatting text with the Property Inspector
      8m 41s
    3. What measurement should I use?
      3m 15s
    4. Managing white space with margins, padding, and line height
      8m 34s
    5. Using font lists
      5m 45s
    6. Aligning text
      2m 47s
    7. Creating lists
      5m 8s
    8. Creating Flash text
      6m 2s
  9. 43m 19s
    1. About tables
      1m 28s
    2. Tables in Code view
      2m 36s
    3. Creating and adding content to tables
      7m 40s
    4. Changing table borders with XHTML
      5m 46s
    5. Coloring tables with XHTML and CSS
      6m 41s
    6. Aligning table content
      6m 39s
    7. Sorting tables
      3m 6s
    8. Setting table widths
      4m 48s
    9. Creating rounded-corner tables
      4m 35s
  10. 28m 22s
    1. Dreamweaver's layout tools
      3m 8s
    2. Tracing images
      4m 58s
    3. Adding AP div tags
      7m 29s
    4. Working with Layout Tables
      6m 55s
    5. Adjusting table widths and nesting tables
      5m 52s
  11. 16m 19s
    1. What is a device?
      3m 14s
    2. Attaching a printer-friendly style sheet
      3m 5s
    3. Styling for print
      7m 41s
    4. Adobe Device Central
      2m 19s
  12. 29m 54s
    1. Rollover rules
      3m 31s
    2. Creating simple rollovers
      5m 36s
    3. Creating disjointed rollovers
      7m 12s
    4. Creating navigation bars with multiple states
      9m 21s
    5. Creating Flash buttons
      4m 14s
  13. 26m 32s
    1. Viewing the code
      6m 9s
    2. Editing in Code view
      3m 0s
    3. The Code toolbar
      5m 11s
    4. Working with Code Collapse
      4m 27s
    5. The Quick Tag Editor
      2m 20s
    6. Working with snippets
      5m 25s
  14. 32m 45s
    1. About forms
      3m 23s
    2. Adding text fields
      9m 52s
    3. Adding checkboxes and radio buttons
      5m 37s
    4. Adding lists and menus
      6m 5s
    5. Submitting form results
      3m 23s
    6. Styling form elements with CSS
      4m 25s
  15. 23m 17s
    1. Opening a new browser window
      9m 38s
    2. Creating a popup message
      2m 50s
    3. Validating text fields
      2m 42s
    4. Getting more behaviors
      7m 2s
    5. Removing extensions
      1m 5s
  16. 14m 58s
    1. External image editor preferences
      3m 18s
    2. Built-in image editing tools
      3m 11s
    3. Roundtrip editing from Dreamweaver to Fireworks or Photoshop
      4m 39s
    4. Copying and pasting
      3m 50s
  17. 34m 16s
    1. Templates in action
      5m 12s
    2. Creating a new template
      6m 36s
    3. Applying templates
      3m 36s
    4. Modifying a template
      1m 40s
    5. Adding repeating regions
      3m 28s
    6. Working with repeating regions
      3m 13s
    7. Adding optional regions
      3m 34s
    8. Creating a library item
      3m 48s
    9. Modifying a library item
      3m 9s
  18. 13m 2s
    1. Using the History panel
      4m 24s
    2. Saving History steps as commands
      3m 25s
    3. Using Find and Replace
      5m 13s
  19. 14m 44s
    1. W3C accessibility guidelines
      4m 6s
    2. Accessibility preferences
      1m 29s
    3. Inserting accessible images
      3m 2s
    4. Inserting accessible tables
      2m 53s
    5. Inserting accessible form objects
      3m 14s
  20. 26m 17s
    1. About media objects
      2m 6s
    2. Linking to audio and video files
      5m 56s
    3. Embedding audio and video files
      7m 7s
    4. Setting parameters
      4m 27s
    5. Inserting Flash content
      2m 37s
    6. Inserting Flash video
      4m 4s
  21. 28m 47s
    1. Getting site reports
      3m 35s
    2. Checking links sitewide
      3m 30s
    3. Signing up with Tripod
      6m 36s
    4. Entering remote info
      4m 13s
    5. Publishing your site
      5m 41s
    6. Updating and publishing pages
      5m 12s
  22. 44s
    1. Goodbye
      44s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dreamweaver CS3 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.