Image cannot be shown on the subDomain

6 posts by 3 authors in: Forums > CMS Builder
Last Post: August 10, 2011   (RSS)

By incube - August 7, 2011

Hi I recently had a problem with the uploads on CMS builder.
I updated to the 2.11 to have the rel path feature on the uploads, but I can work around my problem. In fact, I installed CMS builder on my root. I used it on my main website and on a subdomain. I don't get any problems at this point. In a wysiwyg field, I uploads an image (for the used of the subdomain portion) I can see the image correctly. On the website the image is not found. You can take a deeper look there. http://beta.rdsign.net/code/ If you put the direct patch instead it's seems to works. Images are now displayed. http://rdsign.net/beta/code/

I've tried to set the uploads field fo the wysiwyg with a absolute path like so : http://rdsign.net/cmsRDSign/uploads/ to be sure it will reach the pictures. But It doesn't seems to work. If I take a look of the generated code, it's still written only /cmsRDSign/uploads/.

There is a way I can do to get the pictures displayed correctly when I'm on the subdomain beta.rdsign.net/code/ and not only on the rdsign.net/beta/code/ ????

Thanks you

Re: [incube] Image cannot be shown on the subDomain

By robin - August 8, 2011

Hey,

If you want to use wysiwyg with two different domains, I think your best bet is to use full paths on your wysiwyg image in the "Image URL" field.

So something like: http://rdsign.net/cmsRDSign/uploads/rating.jpg
Instead of: /cmsRDSign/uploads/rating.jpg

Hope that helps,
Robin
Robin
Programmer
interactivetools.com

Re: [incube] Image cannot be shown on the subDomain

By robin - August 9, 2011

Hey,

Yikes, looks like you'll need to do some configuring of the wysiwyg.

This link has the settings that will work for you.
http://www.tinymce.com/wiki.php/TinyMCE_FAQ#Paths.2FURLs_are_incorrect.2C_I_want_absolute.2Frelative_URLs.3F
This one might be easiest
convert_urls : false,

You'll need to change/add these settings an a CMS Builder system file: lib/wysiwyg.php. Around line 100 are the relative url settings.

As always, one thing to keep in mind with editing system files is you'll need to re-edit them after an upgrade.

If you're not comfortable with this kind of file editing, our consulting service can help: consulting@interactivetools.com

Hope that helps,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] Image cannot be shown on the subDomain

By incube - August 9, 2011

Nice thanks it works perfectly now.

Again thank you for your fast answers and your time.
Continue your great work.

Re: [robin] Image cannot be shown on the subDomain

By Dave - August 10, 2011

Also, there's this setting under Admin > General:

WYSIWYG Options [_] Save full URL for local links and images (for viewers on other domains)
Dave Edis - Senior Developer
interactivetools.com