Setting Base Path of embedded Images

Created on 18 January 2009, over 15 years ago
Updated 3 December 2023, 10 months ago

I have live and test versions of my Drupal system, having different base paths on the same server. I.e. one is at www.mysite.com/live/... and one at www.mysite.com/test/...

If I embed an image using FCKEditor and Image Browser into (say) the Body field it is stored with the path information set to e.g. /test/imagebrowser/view/imagecache/20/small or /live/... depending on which system it was added in.

Can you please explain:

1. Where this path gets translated to the actual location of the image in /sites/default/files/...?

2. Is it possible to arrange that the "/test/" portion of the path is replaced by a variable which gives the base path of the current system. This would allow movement of the database from the test to live system (or vice versa) and still have the images display correctly?

With thanks,
Tony.

💬 Support request
Status

Closed: won't fix

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024