Creighton Students
Manual Home  >  Typo3 assistance  >  Common Tasks  >  Links inside documents
Creating links inside documents to pages or other documents on your site.


Not a Typo3 issue but common enough to mention

I've had more than one person puzzle on how to add a link inside a document to another document that they have on their site.  I cannot profess much knowledge of MS Office or Adobe Acrobat but I can tell you how to accomplish this.

Note: I cannot cover the "how to" for inserting links into documents.  That will vary between applications and not only is it beyond the scope of this manual, I simply don't know them all.  For the sake of this example I've used MS Word 2003.

How not to do it.

One thing you cannot do is link to the document by creating a link to it sitting in the same folder on your hard drive. 

What I am trying (badly) to say is this.  You intend to have the two documents in the same folder on your site.  So you you create a link from one to other by  navigating to the document in the same folder. 

It might seem logical since you are going to upload the two documents to the same folder.  Right?  Wrong.

An example.  I've created two documents.  one.doc and two.doc.  I want to a link in one.doc that leads to two.doc so that my users online can open two.doc from one.doc.  

So I highlight the text and add the link to two.doc.  The example is using  office 2003, how you do this will very with each application.

Click image for full size:

Everything seems great.  You've added the link to the second document and since they will be in the same folder on the site (just as they are on your hard drive) it should work.  

But when you open the document from the website, it can't find the second document.  Why?  If you look at the actual link it added (sometimes you can hover over the link and the application will show you the link) you'll see that it's actually looking for your hard drive (this example is my hard drive). 

Even though it seems like it should work, it won't.  After all the two documents are in the same folder on both your hard drive and on your site.  It won't work because almost all applications will add a full path to the document where it is currently located.  In the case above it's the path to the file on my own computer.  

How to do it

Okay the first way didn't work.  So how are you supposed to know the link you need to add so that one document has a link to another? 

You have to be a bit devious.  Here's how.

1.  Upload the document that you want to create the link to.

2.  Create a temporary text content element.  Add some words and then link those to the document you just uploaded.  This is described on page 14 of the document handed out in class (you can also find it here (pdf) (doc))

3.  Click "Save document and view" at the top.

4.  On the preview page you'll see your link.  Mouse over it and right click (Ctrl + Cmd on a Mac) and you'll see an option to copy the link (what this is called will vary between browsers, it's often "Copy Link Location" or "Copy Link").

5.  If you then pasted it into a text document (and that isn't a bad idea) you'd see the entire link to your document.

Click image for full size:

6.  Past the link into the text area for the link in the dialog box (or how ever your application adds links to your document). 

Click image for full size:

7.  Don't forget to delete the temporary content element you used!

Okay but.......

That's great you think.  But I've a more complex problem.  I need to have a link in both documents leading back to the other document.  How do I accomplish this?

Again being a bit devious.

1.  So this time upload both documents, but without your shiny new links.

2.  Using the method above, create a link to both documents in a temporary content element (make sure you identify both so you'll know which is which!).

3.  Copy each link and paste both into a text document like I did above.  Now you have the links to both documents.

4.  Go back to the original documents on your hard drive and add the links to each respective document using the ones put in the text document.  

5.  Re-upload the documents and overwrite the original ones replacing them with the new ones.  (instructions on how to overwrite files is on page 14 of the document handed out in class (you can also find it here (pdf) (doc))


As always you can contact the webteam if you need assistance.

Adding a link to a page on your site.

This is really quite a bit simpler than adding a link to a document!

All you need to do is copy the address from the address bar of your browser (it's at the top and the text always starts with "http://..."). and using what ever insert link method your application has, paste it in. 
Use the complete address.  

So for example if I wanted to add a link to this page, I'd look for the address at the top and I'd find this:

This is what I'd paste in to create the link in the document.  Pretty simple actually.  

Creighton University