Hi there;
Can somebody confirm whether this is a bug? Here’s the situation:
When I place an image via the RTE field’s buttons the directory seems to be hard-coded. In other words, when I export the database (and copy the image files, of course) over to the remote server, the src url for the image embedded in the RTE field remains that of the local server, despite the fact that my image directory path is correctly set for the remote server (I use FocusLab’s master.config system to dynamically update all such directory paths, and it works fine). To explain this another way:
If I place an image file via a file field type and reference that file in a template via a {file} tag, the src url will honour the directory path as defined in File Upload Preferences. (These paths, in turn, are auto-updated courtesy of master.config, eg. localserver/usercontent/myimage.jpg on the local server becomes remoteserver/usercontent/myimage.jpg automatically).
But if I choose to insert the image via the RTE field instead, then when the page is parsed on the remote server the image’s src url is still set to localserver/usercontent/myimage.jpg—thus the image does not display. The RTE image placer seems to bypass the File Upload Preferences path, or at least not treat it as dynamic once set. (It makes no difference whether the image placement is of an already-existing image or whether it is a brand new upload; the problem is the same).
Is there some setting that I’m missing re. the RTE, or is this a bug in the rich text image handling system?
Thanks as always.