MicroTiny and Images

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

MicroTiny and Images

Post by psy »

Not sure if this is a bug that should be reported in the forge or just a weird behaviour.

Background: CMSMS 1.11.11 installed in a subdirectory and using pretty urls.

Config.php shows $config['root_url'] = base url + subdir, eg:

http://www.mysite.com.au/cms
.htaccess is set to RewriteBase /cms

When using MicroTiny (actually same result using TinyMCE but let's stick with MicroTiny for now), and I do not have a sub-dir, in the images directory, the MicroTiny/Images/FileBrowser frame gives the CMSMS 'Ooops, something wrong with your template' error message in the frame.

When I create a directory under uploads/images and then in a WYSIWYG textarea, eg page content edit screen, and click the icon to insert an image, the default directory is my newly created subdir of images - not the images directory.

OK, so I go up one dir to the 'images' dir .... choose my pic and insert it.

The pic then appears in my page admin edit screen but is a broken link on the front end.

My horrid workaround was to include {root_url} in the MicroTiny/Image pic URL input.

Looking at the img URL code on the frontend shows:

Code: Select all

uploads/images/mypic.com
It does not take into account my defined config.php root url and results in a broken image link on the front end.

Have I explained my dilemma well enough? Is this a bug that should be reported?
Last edited by velden on Sun Oct 19, 2014 1:51 pm, edited 1 time in total.
Reason: Diabled fake url. Please use ' Do not automatically parse URLs' checkbox
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: MicroTiny and Images

Post by velden »

frontend: you probably don't have the (proper) base tag in your template. By default it comes with the {metadata} tag if you don't explicitly disabled it with a parameter.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: MicroTiny and Images

Post by psy »

Thanks Velden

I had a <base> tag generated by SEOTools2, ie:

Code: Select all

<base href="http://www.mysite.com.au/cms" >
I searched but could not find:
Diabled fake url. Please use ' Do not automatically parse URLs' checkbox
Where is that checkbox for MicroTiny?

I moved the site from the sub-directory to the root directory and changed the config.php root dir. The base dir in SEO2 changed to reflect the new root dir and images appeared in both the admin and frontend regardless of their position in the page hierarchy (expected).

Not entirely convinced this is not a bug when CMSMS is installed in a sub-directory unless I'm still doing something wrong?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: MicroTiny and Images

Post by paulbaker »

psy wrote:Where is that checkbox for MicroTiny?
Velden is referring to a tick box that appears in this forum when you create a post, a tick box underneath the text entry box.

Sorry, can't offer any help regarding your issue.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: MicroTiny and Images

Post by psy »

Doh, self-head-slap.
thanks paulbaker.
Post Reply

Return to “CMSMS Core”