Open gerritvanaaken opened 14 years ago
I've got exactly the same problem. Any news on this ?
Of course we could force the path, but it would break with an update...
@splittingred: Do you want help with this issue?
@carlwolff:
I noticed that this issue is still no fixed after 4 months. Did you manually edit the path? I cannot find the line which is responsible.. Could you please give me a hint where to look?
best regards
It will work if you add the "base href" tag in your header (by tip from gerrit) even though I would prefer to get rid of that one. I have manage to solve this without the base-tag once but I have no idea why that site worked and the other one didn't :-(
Thanks for your reply, but I don't fully understand your method:
TinyMCE uses "/assets/components/tinymce/" as prefix, so how can base href help? It only defines the "front part" of the whole path.. (base href="http://example.com/" + "/assets/components/tinymce/" + pathToImage)..
Exactly - This was the only way I could make it work. It is a broken behavior in TinyMCE when using rootrelative i guess, so the only way is to not use it. Anyway...if you're only looking for SEO, I think Google is advanced enough to find your pictures ;-)
My configuration is:
\ template **
Base href:
\ settings ** tiny.path_options: docrelative
Good luck! (if you find a better solution - please tell us!)
It's working - thank you very much!
(if you find a better solution - please tell us!) I will, but I'm not very optimistic ;)
I actually managed to get rid of this problem in 2.1.2-pl by setting tiny.path_options to blank. Anyone else who can confirm this?
edit: Nevermind! That broke TinyMCE. :D
You can fix this by setting tiny.base_url in system settings, I changed the path to of my Filesystem to /assets/ and this broke the TinyMCE image path. In order to fix this just set the tiny.base_url to /assets/ too and it should be fine. I also have tiny.path_options set to rootrelative.
Affects inserting images with advimage plugin. My image directory is set to "assets/images/" in file system settings.
In rootrelative mode Image URL from MODx browser: "assets/images/myimage.jpg" image preview url: "http://localhost/assets/components/tinymce/assets/images/myimage.jpg" url of generated image after inserting: "/assets/components/tinymce/assets/images/myimage.jpg"
In fullpathurl mode Image URL from MODx browser: "assets/images/myimage.jpg" image preview url: "http://localhost/assets/components/tinymce/assets/images/myimage.jpg" url of generated image after inserting: "http://localhost/assets/components/tinymce/assets/images/myimage.jpg"
In docrelative mode the urls are correct, but useless for websites with "friendly alias path". This is decsribed here as well: http://modxcms.com/forums/index.php/topic,55324.msg318337.html