New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

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

Creating hyperlinks

From: InDesign CS4 Beyond the Basics

Video: Creating hyperlinks

If you can remember back to the late 20th century, you may remember a time when computers didn't react to your actions, when text was simply presented on the screen without any option for clicking on it. Those were the dark ages. Today, savvy readers expect a little bit more in the way of interactivity. So in this chapter we are going to explore your options for making your documents do stuff, and we will start with the simplest interactivity of all, building hyperlinks. But before I go any farther I want to point out that when I talk about building interactive documents, I mean Interactive PDF and Flash SWF documents. You can import movies and make buttons and all kinds of things in InDesign, and I will be discussing those in the following movies, but those things don't do anything until you export the file as a PDF or SWF. I will show you the key to doing that in just a moment, but first, how to build a hyperlink.

Creating hyperlinks

If you can remember back to the late 20th century, you may remember a time when computers didn't react to your actions, when text was simply presented on the screen without any option for clicking on it. Those were the dark ages. Today, savvy readers expect a little bit more in the way of interactivity. So in this chapter we are going to explore your options for making your documents do stuff, and we will start with the simplest interactivity of all, building hyperlinks. But before I go any farther I want to point out that when I talk about building interactive documents, I mean Interactive PDF and Flash SWF documents. You can import movies and make buttons and all kinds of things in InDesign, and I will be discussing those in the following movies, but those things don't do anything until you export the file as a PDF or SWF. I will show you the key to doing that in just a moment, but first, how to build a hyperlink.

I have my Bliss_Interactive document open from the Exercise Files and I want to open the Hyperlinks panel. Right now I have the Interactivity workspace selected, so the Hyperlinks panel is easy to find. But if you have some other workspace selected, you can always go to the Window menu and choose Hyperlinks from the Interactive submenu. Hyperlinks can be added to any text or any object. Let's see how to do it. First, select some text. I will just double-click on here and select a little bit of random text in here. Now, the easiest thing to do is simply to come up here and type in the URL field of the Hyperlinks panel. So I can come in here and just type, let's say google.com. I hit Enter and it adds the hyperlink, so there is the hyperlink in the Hyperlinks panel and the hyperlink shows up here on the page.

Now if I zoom in on this, Cmd+2 or Ctrl+2 on Windows, it looks just fine, right? But if I come out of Preview Mode and I go into Normal Mode, you will see a black rectangle around that text. That black rectangle is telling you that it's a hyperlink, but the problem is that black rectangle will also show up in your final PDF document, and that is not good. It's really ugly in my opinion. So we want to get rid of that. The way to do that is to edit the hyperlink and you can edit the hyperlink just by double clicking on it in the Hyperlinks panel. I will double click on it and look at the bottom of the Edit Hyperlink dialog box. It says Appearance and the first item in here is Type: Visible Rectangle. I don't like that one bit. So I am going to set it to Invisible Rectangle so that I don't get an annoying rectangle either on screen or in Acrobat or in the SWF.

The problem though is that now nobody can see that it's a hyperlink. So it's a good idea to apply some kind of styling to this text, just to make it look a little bit more like a hot zone or a spot that I can click on. The best way to do that, in my opinion, is to apply a character style. So you can turn on the Style checkbox here and then choose a character style out of the Character Style pop-up menu. Right now there is none available, so we better go create one. I will click OK, open the Character Styles panel, and I am just going to make a quick new character style here by Option or Alt clicking on the New Character Style button, and I am going to called this hyperlinks. Then we will just change something, maybe we will make it a nice blue color, and maybe why don't we give it an underline, it's always nice to have those little underlines there. Just a little thin underline, 0.5 point, maybe 1 point down, Solid underline. That will look okay. Let's click OK, and then go edit this hyperlink one more time.

I will double click on it and choose my new character style out of the Character Style pop-up menu here. There we go. Blue and underlined. Since I am here, I want to point out that at the top of this dialog box it says Link To: Shared Destination. What is a shared destination? A shared destination is a destination, typically a web page or maybe a mail address or perhaps even a different page in this document, and it's shared. Meaning that I can use it over and over again within this document. Let me give you an example of an unshared destination. I will click OK, and I am going to select some different text in here. I will come over here, and instead of just typing in this field, because when you type in this field you always get a shared destination, instead of doing that I am going to choose New Hyperlink from the flyout menu.

Now, I once again get a choice between Link To: Shared Destination, or all these other kinds of destinations, and these are going to be not shared, they are going to be like one time only destinations. For example, if I want to make a destination to let's say my own website, www.63p.com. Well, I have a choice now to either share this. In other words, I would do that if I am going to be using this URL over and over again, or make it unshared, which means that I am only going to be using this one time. Don't remember it, don't put it in a pop-up menu for me to grab later.

I want to make sure that my type is set to Invisible, my Character Style is to Hyperlinks, looks good, click OK, and we can see that now it shows up here, it shows up here, but it does not show up in my pop-up menu. It is showing up in the field here, but its not showing up in the pop-up menu for me to grab later. For example, if I select some other text here, I can't automatically grab it out of that pop-up menu, because its not shared. When I am creating interactive PDFs or SWFs, I tend to make most of my URL destinations unshared, because they are only like one-offs, and I try and keep the number of shared destinations to a minimum, and the reason is, it can really clutter up your pop-up menus and your dialog boxes. It just becomes kind of a hassle if you have too many shared destinations, so keep those to a minimum.

Okay. Let's make a couple more hyperlinks. I will select some text. I am going to come up here and say New Hyperlink, and instead of making a URL destination, I am going to make an Email destination. Here I will say, let's send this to david@indesignsecrets.com, and the subject line will be Interactive Documents. Now, when I do this I am creating a link that is going to send an email, in this case to me. So I will turn off Shared Hyperlink Destination, because I don't want it cluttering up my pop-up menus, I will make sure everything is set up here, and I click OK. Now I have got a URL that's going to go to my particular email address. So that's kind of cool. Now you know how to reach me, I suppose, so maybe that's a dangerous thing, I am taking a risk there. Don't email me, don't email me. Okay. You can email me if you need to.

In the meantime, I want to show you another type of hyperlink, one that goes to a different page. Let's say I will select this text up here; in fact, this time I won't select the text, I am going to select the whole object. I am just going to use the Selection tool to select this text frame, and I am going to make a new URL. This time, instead of taking it out of the pop-up menu, the flyout menu from the panel, I am just going to click on the button at the bottom of the Hyperlinks panel. That's the same thing. It's the Create New Hyperlink button. I am going to say this one is going to go to a different page. Which page is it going to go to? Well, first you need to say what document it's going to go to; in this case it's just going to the same document. Then you are going to say what page. Say we go to Page 3 of this document, and we can choose what the Zoom setting will be. You have all kinds of options here. I am going to set it to Fit in Window so that when it gets to Page 3 it will automatically fit that into the window.

Now, in this case because I have an object selected, I cannot apply a character style to that. I wish I could apply an object style or something like that, but can't do that in InDesign CS4. We will just have to remember that it is a hyperlink. I will click OK, and I am going to remember that's a hyperlink for when we try it out later on. Okay. Just a couple more things about the Hyperlinks panel. One is, if I select something here, for example, this item here, which I know is a page link because of that little page icon there. Look at the bottom of the Hyperlinks panel; I have these little buttons, little arrows down here. This means go to the destination itself. So I can actually try this hyperlink out by clicking on that; it takes me right to Page 3, look at that, I like that.

I can also select the URL and say; take me back to the hyperlink itself. So I click on that and it takes me back and selects the object. Same thing here. If I don't remember, you know, what is this chocolate as defined? It's going to take me to Google, but where is it in my document? Just click on this 'Take me to the Hyperlink' button; and I better hide the Character Styles here so we can see it better. Now I will click on that and it takes me right to it and selects the text. So that could be very, very handy when you are trying to try out your hyperlinks and also when you are trying to figure out where those hyperlinks came from.

In this case, I happened to know this is a Named Hyperlink Destination, its one that goes to Google, and it shows up here in my pop-up menu. But what if I want to change that, what if I wanted it to go to someplace else? Well, I could go to the Hyperlinks flyout menu and choose Hyperlink Destination Options. This lets me see all the destinations in this document, and it lets me edit them; by clicking on the Edit menu, and then I can change its name if I want to. The name is simply what shows up in that pop-up menu, it doesn't change the URL at all. But I will just change this to, let's say, Search Engine. Then I am going to say, well, what if we change the Search Engine to yahoo.com instead. Click OK, and it updates.

Now, it doesn't change any of the names of the hyperlinks in the Hyperlink panel, but if I later go and make a new hyperlink here, you will see what shows up in this pop-up menu, Search Engine, not Google, not the URL, just Search Engine. When I select it, it automatically adds that URL; here let me grab it there, it automatically sets it to yahoo.com. So that's how you can change those destinations. In fact, this one up here is also being change to yahoo.com as well behind the scenes, because it was a shared destination. So I change it in one place and it changes all of those URLs throughout the document.

By the way, I pointed out that I can take a hyperlink here that takes me to Page 3, but I forgot to make a hyperlink that takes me back to Page 1, so I better do that. I just want to point out one of my favorite hyperlink tricks is, you don't have to make a hyperlink that's visible, you can make a completely invisible hyperlink with any frame. Any frame you want. I am going to make a big frame over most of this page here, and with that big invisible frame sitting on top; I will make this a page hyperlink back to Page 1. I will set this to Fit in Window as well, click OK, and we can see that now this object itself shows up in the Hyperlinks panel, under the name Hyperlink 5; not very descriptive but you get the idea, and we now have a hyperlink that won't show up at all on screen, but when you click on that page, it will take you back to Page 1. Let's try it. Click on that, click on the Go to. Yup, it took me back to Page 1.

Of course, we can also remove some of these hyperlinks; let me make this a little bit longer. By the way, you can also adjust how much space the Hyperlinks gets versus the Cross- References by dragging that center point, that center line in between the Hyperlinks and Cross-References. Lot of people don't realize that. But let's go ahead and select one of these hyperlinks and go to it so it's selected in the text itself. What if I want to delete it, what if I don't want that to be a hyperlink anymore? No big deal. Just select it in the Hyperlinks panel, and click on the little Trash Can button, and it goes away.

Okay. Now, it's time to finally try out our hyperlinks and see if they work. I will go to the File menu, choose Export. I will make sure the Format pop-up menu is set to Adobe PDF, in this case, although SWF will also work, and I will click Save. Let's go ahead and view the PDF after exporting. That will make it easier. I don't have to double click on it myself later. Then, down here in the lower left corner, the most important thing of all, Include Hyperlinks. I can't tell you how many InDesign users complain that their hyperlinks don't work, and it all comes down to them simply not turning on that checkbox. If you don't turn that checkbox on the hyperlinks will not be in your PDF files.

I will click Export. It will export the file, it will open up in Acrobat and we can see that there is the hyperlinks. In fact, if I hover my cursor over it I get a different kind of cursor and it tells me that it's going to go to Yahoo! Here is another one that's going to the 63p, this one is going to another -- oops, that's the mail to link there. If I hover over this little text over here, it will take me directly to where? Let's click, there we go, Page 3. It took me right to the right page. If I click anywhere in the center area-- remember there's that invisible hyperlink there? Click anywhere on there, it takes me back to Page 1. So the hyperlinks all worked.

In a later chapter I am going to be showing you how you can do the same thing, exporting all these hyperlinks out to a SWF file. If there is any chance your documents will be read on screen, you owe it to yourself and your readers to create hyperlinks that will help them navigate the document or jump to other resources. In the next movie, we will take a look at a second form of navigation in PDF files called Bookmarks.

Show transcript

This video is part of

Image for InDesign CS4 Beyond the Basics
InDesign CS4 Beyond the Basics

90 video lessons · 24515 viewers

David Blatner
Author

 
Expand all | Collapse all
  1. 2m 11s
    1. Welcome
      1m 3s
    2. Using the exercise files
      1m 8s
  2. 25m 16s
    1. Reviewing Control panel shortcuts
      8m 34s
    2. Managing panels
      6m 14s
    3. Letting InDesign do the math
      2m 52s
    4. Using Selection tool clicks
      1m 39s
    5. Using Quick Apply shortcuts
      3m 2s
    6. Setting up context shortcuts
      2m 55s
  3. 23m 51s
    1. Using column guides
      3m 42s
    2. Formatting and positioning guides
      5m 15s
    3. Setting first baseline options
      5m 30s
    4. Using the Document grid
      3m 13s
    5. Setting bleeds
      3m 3s
    6. Using slugs
      3m 8s
  4. 48m 2s
    1. Shuffling pages (or not)
      2m 47s
    2. Scaling objects to a specific size
      2m 32s
    3. Aligning objects to a page
      4m 41s
    4. Using advanced libraries
      4m 5s
    5. Using advanced anchored objects
      11m 21s
    6. Setting non-printing objects
      3m 10s
    7. Creating notes
      5m 23s
    8. Using Data Merge
      10m 41s
    9. Creating templates
      3m 22s
  5. 39m 32s
    1. Creating polygons and starbursts
      2m 35s
    2. Setting custom stroke styles
      5m 15s
    3. Using advanced effects
      8m 46s
    4. Making masks in InDesign
      4m 10s
    5. Integrating InDesign and Illustrator
      4m 59s
    6. Setting compound paths
      5m 4s
    7. Using advanced clipping paths
      6m 6s
    8. Using advanced image transparency
      2m 37s
  6. 55m 26s
    1. Using advanced text formatting
      5m 37s
    2. Using other languages
      4m 22s
    3. Setting advanced paragraph numbering
      3m 12s
    4. Using GREP to find/change
      6m 54s
    5. Managing glyphs
      5m 6s
    6. Finding and changing glyphs
      2m 39s
    7. Adding footnotes
      7m 57s
    8. Creating outlines
      3m 39s
    9. Setting conditional text
      9m 16s
    10. Creating cross-references
      6m 44s
  7. 33m 3s
    1. Advanced text importing
      7m 49s
    2. Using Apply Next Style
      5m 4s
    3. Advanced text styling
      6m 9s
    4. Setting load styles
      2m 58s
    5. Linking to text files on disk
      4m 1s
    6. Understanding GREP styles
      7m 2s
  8. 1h 4m
    1. Building a multi-document book
      4m 42s
    2. Setting page numbering across books
      7m 53s
    3. Setting chapter numbering
      6m 7s
    4. Using the Section Marker feature
      6m 53s
    5. Creating "Continued On..." numbers
      4m 44s
    6. Synchronizing documents in a book
      5m 41s
    7. Creating a table of contents
      11m 24s
    8. Indexing documents
      7m 24s
    9. Generating an index
      6m 47s
    10. Printing or exporting a book
      3m 10s
  9. 46m 4s
    1. Creating hyperlinks
      12m 53s
    2. Setting bookmarks
      6m 7s
    3. Creating buttons
      11m 16s
    4. Making movies
      8m 24s
    5. Creating sounds
      4m 51s
    6. Setting page transitions
      2m 33s
  10. 25m 59s
    1. Setting up swatch and style defaults
      3m 24s
    2. Using mixed ink colors
      6m 16s
    3. Working with duotones
      4m 23s
    4. Overprinting
      2m 10s
    5. Ink aliasing
      4m 50s
    6. Using the Kuler panel
      4m 56s
  11. 50m 27s
    1. Creating the transparency blend space
      4m 6s
    2. Understanding InDesign color settings
      9m 8s
    3. Assign Profile and Convert to Profile
      3m 26s
    4. Working with RGB images
      7m 54s
    5. Working with CMYK images
      6m 28s
    6. Soft-proofing
      5m 18s
    7. Managing color at print time
      7m 25s
    8. Managing color in a PDF export
      6m 42s
  12. 42m 1s
    1. Embedding preflight profiles
      5m 1s
    2. Using the Transparency Flattener preview
      3m 23s
    3. Reviewing Transparency Flattener settings
      6m 30s
    4. Setting print presets
      3m 35s
    5. Setting PDF presets
      3m 21s
    6. Exporting to XHTML
      7m 42s
    7. Exporting to SWF
      6m 45s
    8. Exporting to XFL
      5m 44s
  13. 25m 58s
    1. Understanding XML and InDesign
      6m 51s
    2. Structuring InDesign content
      4m 17s
    3. Importing XML
      6m 57s
    4. Exporting to XML
      7m 53s
  14. 34s
    1. Goodbye
      34s

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

Are you sure you want to delete this note?

No

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.