How to have relative path (ex ../../)...
I use The HTML Editor and search how to obtain a relative path for file links, like we have with the "Insert image window". (I know difference between absolute and relative path)
In the "Insert Link window", when you select another file, you not have "../../" added to the name of file when it's necessary.
If I open a file, and I want to add (image and file are located at the same place)
- an image link => ex : ../../picture.png
- a file link => any_folder/file.html
The path starts on a folder ...
Thank you very much.
Then I saved my html file to the desktop, and the link immediately changed to this:
I added another image from the desktop:
I think SAVING the file is what you need to do.
but my problem is about links created from file, using "Insert Link window" in CoffeeCup HTML Editor.
When I open new document, I create image link : no problem, The "Insert image window" creates good relative path.
Result : <img src="../../../../TESTS/chat icone 3.jpg" width="40" height="39" alt="" title="" />
That's what I want to obtain with file links.
With the "Insert Link window" interface, it produces an absolute path (and even complete path).
Result : <a href="TESTS/My page.html">test Page</a> and I would obtain <a href="../../../../TESTS/My page.html">test Page</a>
Even though I save my document, link does not change.
I don't know if it is possible with CoffeeCup. I thought I was (I am new user of CC ). I have many files to create with relative path. I can't create them manually.
Thank you very much
The screen-shot shows the sub-directory and additional files I put into some local web pages I use, and the result of using 'Quick Link to Relative File' to insert a link in a file in the test-2 sub-directory to a file at the top level.
It's just what I searched.
I had looked menus but I did not notice. And after I was expecting stupidly to find it just with simple link file options and right clic.
To create link from file into four or more sub folder, the screen is covered by sub-menu but it's works and it's fine.
Thank you so much for your solution.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.