Page 1 of 1

MicroTiny and Images

Posted: Sun Oct 19, 2014 12:57 pm
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?

Re: MicroTiny and Images

Posted: Sun Oct 19, 2014 1:54 pm
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.

Re: MicroTiny and Images

Posted: Tue Oct 21, 2014 9:23 am
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?

Re: MicroTiny and Images

Posted: Wed Oct 22, 2014 12:44 am
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.

Re: MicroTiny and Images

Posted: Wed Oct 22, 2014 11:12 am
by psy
Doh, self-head-slap.
thanks paulbaker.