I'm not sure if this is FCK or module related. I'm embedding images with IMCE hooked into FCK. The images don't have full path so they break in Drupal RSS feeds. I have to type the full path manually for each image.
I'm not sure if this is FCK or module related. I'm embedding images with IMCE hooked into FCK. The images don't have full path so they break in Drupal RSS feeds. I have to type the full path manually for each image.
Comments
Comment #1
wwalc commentedYou can do that with the built-in file browser:
Enable file browser for your profile in:
Administer -> Site configuration -> FCKeditor
Modify "Path to uploaded files" to something like that:
http://example.com%b%f/I've tried to achieve the same behaviour with IMCE (without effects), so you may try to ask the IMCE maintainer is it possible to do it.
Comment #2
jrabeemer commentedwwalc:
I turned on the built-in file browser. I created a profile and set the Path to uploaded files and absolute path. I did http://mydomain.com%b%f/ The current path returned http://example.com/files/ which is correct. But I still get back /files/myimage.jpg instead of http://mydomain.com/files/myimage.jpg
I hacked the config file directly with...
$Config['UserFilesPath'] = 'http://mydomain.com/files/' Now I get the full path out of the file browser. But that is going around the problem.
Comment #3
wwalc commentedFirst of all let me tell that storing absolute urls is generally wrong. If you ever change your domain and so on, you will have some problems with it.
Now getting back to the problem:
setting "Path to uploaded files:" to "http://mydomain.com%b%f/ " should work.
If you are still getting "/files/myimage.jpg" it may mean that you didn't add
require_once "../../../../../filemanager.config.php";in modules\fckeditor\fckeditor\editor\filemanager\connectors\php\config.php
or you are overwriting
$Config['UserFilesPath']set by filemanager.config.php with your own value in config.php.To fix your problem, make sure that you are including filemanager.config.php after those two lines in config.php:
and that $Config['UserFilesPath'] and $Config['UserFilesAbsolutePath'] are not redefined after including filemanager.config.php.
Comment #4
summit commentedSubscribing, greetings, Martijn
Comment #5
Jorrit commentedI personally would rather add the hostname when outputting the content as an RSS feed. This is not an FCKeditor issue to me.