Inserting a Relative Hyperlink

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 17:58, 15 June 2007 (edit)
Jgd (Talk | contribs)

← Previous diff
Current revision (19:02, 15 June 2007) (edit) (undo)
Lorinda (Talk | contribs)
m (polish as requested)
 
Line 1: Line 1:
-{{Fixme}}+In a NeoOffice document you can insert a hyperlink to another document in such a way that this link is preserved when both documents are moved together, even to another computer.<br>
-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.<br>+This way you can insert in a Writer, Calc or Impress document hyperlinks to files in any format created by NeoOffice: images, .html, .pdf files, etc.<br>
-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.<br>+Let us assume that you want to insert a hyperlink to the "myFile.html" into the ''myDocument.odt'' document. You have to proceed as follows:
-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:+*In the {{menu|NeoOffice}} menu, choose {{menu|Preferences…}}.
-*Check out in the {{menu|NeoOffice}} menu, in the {{menu|Preferences…}} sub-menu then in the {{section|Load/Save}} > {{section|General}} section that the {{prefName|File system}} box in the {{section|Save URLs relative to}} section is checked.+*In the {{section|Load/Save}} section, under {{section|General}} make sure that the {{prefName|File system}} box in the {{section|Save URLs relative to}} section is checked.
-*Put ''myDocument.odt'' and ''myFile.html'' in the same folder ''myFolder''+*Put ''myDocument.odt'' and ''myFile.html'' in the same folder, e.g. ''myFolder''
*Click in the location of ''myDocument.odt'' where you want to insert the link *Click in the location of ''myDocument.odt'' where you want to insert the link
-*Go to the {{menu|Insert}} menu and choose the {{menu|Hyperlink}} sub-menu or click on the '''Hyperlink''' icon in the toolbar (it's the icon which shows a "@")+*Go to the {{menu|Insert}} menu and choose the {{menu|Hyperlink}} sub-menu or click on the '''Hyperlink''' icon in the toolbar (it's the icon which shows a "@")
-*In the {{window|Hyperlink}} dialog click on the '''Document''' icon if it's not already selected.+*In the {{window|Hyperlink}} dialog click on the '''Document''' icon if it's not already selected.
*Click on the button on the right of the {{prefName|Path}} field in the {{section|Document}} section and browse to your ''myFile.html'' file. Select it and click {{button|Open}} *Click on the button on the right of the {{prefName|Path}} field in the {{section|Document}} section and browse to your ''myFile.html'' file. Select it and click {{button|Open}}
*In the {{section|Further settings}} section, in the {{menu|Form}} drop-down menu choose one of the two options {{prefName|Text}} or {{prefName|Button}} *In the {{section|Further settings}} section, in the {{menu|Form}} drop-down menu choose one of the two options {{prefName|Text}} or {{prefName|Button}}
-*If you chose {{prefName|Text}} you have just to enter the text which has to be clicked on to activate the link+*If you choose {{prefName|Text}} you have just to enter the text which has to be clicked on to activate the link
*Click {{button|Apply}} and close the {{window|Hyperlink}} window *Click {{button|Apply}} and close the {{window|Hyperlink}} window
-*If you chose {{prefName|Button}} you also have to disable the design mode. To do that go to the {{menu|View}} menu, then to the {{menu|Toolbars}} sub-menu and select {{menu|Form Controls}}. In that toolbar click on the '''Design Mode On/Off''' icon.+*If you choose {{prefName|Button}} you also have to disable the design mode. To do that go to the {{menu|View}} menu, then to the {{menu|Toolbars}} sub-menu and select {{menu|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: <tt>file:///path/to/the/file</tt>, but it's automatically updated when you move the ''myFolder'' folder.<br>+Now you can move the ''myFolder'' folder where you want, including to another machine. The link still appears as an absolute one: <tt>file:///path/to/the/file</tt>, but it's automatically updated when you move the ''myFolder'' folder.<br>
'''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.<br> '''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.<br>
-In the same way you can insert a relative hyperlink in a cell of a spreadsheet.+You can insert a relative hyperlink in a cell of a spreadsheet in the same way..
{{botlangbarEN|[[Fr:Insérer un Hyperlien Relatif |Français]]}} {{botlangbarEN|[[Fr:Insérer un Hyperlien Relatif |Français]]}}
[[Category:Tips and Hints]][[Category:NeoOffice]] [[Category:Tips and Hints]][[Category:NeoOffice]]

Current revision

In a NeoOffice document you can insert 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 any format created by NeoOffice: images, .html, .pdf files, etc.
Let us assume that you want to insert a hyperlink to the "myFile.html" into the myDocument.odt document. You have to proceed as follows:

  • In the NeoOffice menu, choose Preferences….
  • In the Load/Save section, under General make sure that the File system box in the Save URLs relative to section is checked.
  • Put myDocument.odt and myFile.html in the same folder, e.g. 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 choose 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 choose 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, including to 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.
You can insert a relative hyperlink in a cell of a spreadsheet in the same way..


This article in other languages: Français
Personal tools