Inserting a Relative Hyperlink

From NeoWiki

Revision as of 17:58, 15 June 2007 by Jgd (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
This article is not up to date, or it needs structural or stylistic changes to conform with the rest of this wiki.

You can insert in a NeoOffice document a hyperlink to another document in such a way that this link is preserved when both documents are moved together, even to another computer.
This way you can insert in a Writer, Calc or Impress document hyperlinks to files in various formats: all the files created by NeoOffice, images, .html, .pdf files, etc.
Let us assume that you want to insert in the myDocument.odt document a hyperlink which opens the myFile.html. You have to proceed as follows:

  • Check out in the NeoOffice menu, in the Preferences… sub-menu then in the Load/Save > General section that the File system box in the Save URLs relative to section is checked.
  • Put myDocument.odt and myFile.html in the same folder myFolder
  • Click in the location of myDocument.odt where you want to insert the link
  • Go to the Insert menu and choose the Hyperlink sub-menu or click on the Hyperlink icon in the toolbar (it's the icon which shows a "@")
  • In the Hyperlink dialog click on the Document icon if it's not already selected.
  • Click on the button on the right of the Path field in the Document section and browse to your myFile.html file. Select it and click Open
  • In the Further settings section, in the Form drop-down menu choose one of the two options Text or Button
  • If you chose Text you have just to enter the text which has to be clicked on to activate the link
  • Click Apply and close the Hyperlink window
  • If you chose Button you also have to disable the design mode. To do that go to the View menu, then to the Toolbars sub-menu and select Form Controls. In that toolbar click on the Design Mode On/Off icon.

Now you can move the myFolder folder where you want, included on another machine. The link still appears as an absolute one: file:///path/to/the/file, but it's automatically updated when you move the myFolder folder.
N.B. In order to maintain the link it's necessary that the file which contains the hyperlink and the target remain in the same folder.
In the same way you can insert a relative hyperlink in a cell of a spreadsheet.


This article in other languages: Français
Personal tools