Image cannot be shown on the subDomain

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

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: [robin] Image cannot be shown on the subDomain

By incube - August 9, 2011

It's exactly what I did. In the wysiwyg on the link for the image I set this http://rdsign.net/cmsRDSign/uploads/rating.jpg but the CMS seems to strip the domain. It removed the http://rdsign.net so when we get the page the image isn't shown.
It's become a bigger problem if I would like to have my assets on subdomain to cached them.

I don't know if it can't keep an absolute path or it's cause I put the same domain that the CMS is host so CMS builder rip the useless domain.

Thanks for your quick answer.

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