LibreOffice 24.8 abi
HĂŒperlinke lisades tuleb arvestada kaht tegurit: kas need salvestatakse suhteliste vĂ”i absoluutsetena ja kas fail on olemas vĂ”i mitte.
Choose Load/Save - General and specify in the Save URLs relative to field if LibreOffice creates relative or absolute hyperlinks. Relative linking is only possible when the document you are working on and the link destination are on the same drive.
-You should create the same directory structure on your hard disk as that which exists in the web space hosted by your Internet provider. Call the root directory for the homepage on your hard disk "homepage", for example. The start file is then "index.html", the full path being "C:\homepage\index.html" (assuming Windows operating system). The URL on your Internet provider's server might then be as follows: "http://www.myprovider.com/mypage/index.html". With relative addressing, you indicate the link relative to the location of the output document. For example, if you placed all the graphics for your homepage in a subfolder called "C:\homepage\images", you would need to give the following path to access the graphic "picture.gif": "images\picture.gif". This is the relative path, starting from the location of the file "index.html". On the provider's server, you would place the picture in the folder "mypage/images". When you transfer the document "index.html" to the provider's server through the File - Save As dialog, and if you have marked the option Copy local images to Internet under - Load/Save - HTML Compatibility, LibreOffice will automatically copy the graphic to the correct directory on the server.
An absolute path such as "C:\homepage\graphics\picture.gif" would no longer function on the provider server. Neither a server nor the computer of a reader needs to have a C hard drive: operating systems such as Unix or macOS do not recognize drive letters, and even if the folder homepage\graphics existed, your picture would not be available. It is better to use relative addressing for file links.
Link veebilehele, nÀiteks "www.nÀidis.ee" vÔi "www.teenusepakkuja.ee/minuleht/index.html" on absoluutne link.
LibreOffice kÀitub erinevalt vastavalt sellele, kas fail, millele link viitab, on olemas vÔi mitte ja kus see asub. LibreOffice kontrollib kÔiki uusi linke ja mÀÀrab automaatselt sihtmÀrgi ja protokolli. Tulemust nÀeb pÀrast lÀhtedokumendi salvestamist genereeritud HTML-koodis.
Kehtib jĂ€rgmine reegel: suhteline viide ("pildid/pilt.gif") on vĂ”imalik ainult siis, kui mĂ”lemad failid asuvad ĂŒhel kettal. Kui failid paiknevad erinevatel ketastel sinu sĂŒsteemis, jĂ€rgib absoluutne viide "file:" protokolli ("file:///data1/xyz/pilt.gif"). Kui failid asuvad erinevates serverites vĂ”i kui lingi sihtmĂ€rk pole saadaval, kasutab absoluutne link "http:" protokolli ("http://data2/abc/pilt.gif").
Kontrolli kindlasti, et kĂ”ik sinu kodulehekĂŒlje failid asuksid samal kettal, kus paikneb avafail. Sel moel saab LibreOffice mÀÀrata kindlaks protokolli ja sihtmĂ€rgi ning viited serveris on alati Ă”iged.
Kui jĂ€tad hiire hĂŒperlingi kohal seisma, nĂ€itab kohtspikker absoluutset viidet, sest LibreOffice kasutab seesmiselt absoluutseid asukohti. TĂ€ielikku asukohta ja aadressi nĂ€eb alles siis, kui vaatad HTML-i eksportimise tulemust, avades HTML-faili "tekstina" vĂ”i tekstiredaktoris.