Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


On 19/09/2020 19:56, Regina Henschel wrote:
Hi Dave,

please excuse, same in English:

No problem. Your English is a million times better than my tiny
understanding of German.

Regina Henschel schrieb am 19-Sep-20 um 20:47:
Hi Dave,

Dave Barton schrieb am 19-Sep-20 um 16:33:
I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.


You create the hyperlink with Ctrl+K and then Document?

Do not try to manually enter the link, but _always_ use the button at
the right side of the Target input field. Of cause the target needs to
be already in the same folder as the text file.

Be not confused by the shown text. It does not show, what is stored in
the file. The link is stored as relative. Such links are usually stored
as relativ, even if not in the same folder. Only if a target is on a
different drive, the link is absolute.

If you are unsure about the saved text, open the file e.g. with 7Zip and
look into the content.xml. You will find the link starting with ../

Kind regards
Regina

Hi Regina,

Many thanks for taking the time to reply.

The odt document and the linked files are all in the same local directory.

I open the hyperlink dialog either by the menu, toolbar or keyboard
Ctrl+K. I do not manually enter the link. In the hyperlink dialog I
select the "Open File" button to the right of "Document > Path", see:
http://www.mediafire.com/view/33hc7qwbjtc7dlp/Hyperlink_Dialog.png/file
Selecting the file from the open file dialog ALWAYS adds the full
(ABSOLUTE) path to the hyperlink in the document.

Maybe I have misunderstood or misinterpreted your explanation, but I
cannot find anything in the hyperlink dialog that provides an option to
create a RELATIVE hyperlink to to another file.

I should add that part of my reason for asking this question is that if
I can get this to work it will form the basis of a section in the next
edition of our official Writer Guide, so so telling our readers to unzip
odt files is definitely not an acceptable option.

Thanks & Kind Regards
Dave


-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.