LibreOffice 24.2 Help
Кога вклучувате хиперврски, два фактора мора да се земат во предвид: дали тие се поставени како релативни или апсолутни при зачувување и дали датотеката е присутна.
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.
Врска до веб страница, на пример, "http://www.slobodensoftver.org.mk" или "http://mk.openffice.org" е апсолутна врска.
LibreOffice исто така различно реагира, во зависност од тоа дали постои датотеката која е посочена во врската и каде се наоѓа. LibreOffice ја проверува секоја нова врска и автоматски поставува цел и протокол. Резултатот може да се види во генерираниот HTML код по зачувување на изворниот документ.
Се однесуваат следниве правила: Релативна референца ("graphic/picture.gif") е можна само кога двете датотеки постојат на истата партиција. Ако датотеките се на различни партиции во Вашиот локален датотечен систем, апсолутната референца го следи "file:" protocol ("file:///data1/xyz/picture.gif"). Ако овие датотеки се на различни сервер или ако целта на линкот не е достапна, апсолутната референца го користи "http:" protocol ("http://data2/abc/picture.gif").
Осигурајте се дека се организирани сите датотеки за Вашата домашна страница на истата партиција како стартна датотека на домашната страница. На овој начин, LibreOffice може да го постави протоколот и целта така што референцата на серверот секогаш е точна.
Кога ќе го поставите глушецот на хиперврска, советот со помош ја прикажува апсолутната референца, откако LibreOffice користи внатрешни апсолутни имиња на патеки. Комплетната адреса и патека може да се види само кога го гледате резулатот на HTML изнесувањето, со вчитување на HTML датотека "Текст" или отворете го со уредувач на текст.