Page 1 of 1

Switching "/" to "?" in cmsimage.php link

Posted: Fri 17. Jul 2015, 13:11
by trixs
Dear all,
After migration to web hosting I found problem that ,as I supposed AcceptPathInfo Directive is off on my hosting, that why I need to change all my links to images added through Ckeditor for using "?" instead of "/". Even more I need to change it manually every time I add new image to article. As I understand some of features also will not work properly. What should I do to force using "?" for cmsimage.php? in different places like Ckedtior, templates and so on.

Re: Switching "/" to "?" in cmsimage.php link

Posted: Fri 17. Jul 2015, 13:17
by update
What version do you run?

Re: Switching "/" to "?" in cmsimage.php link

Posted: Fri 17. Jul 2015, 13:23
by Old Boy
The very best way and my TIPP No ONE:

Don't manage images inside the CKeditor anymore!

Instead, use several ContentParts like sandwiches.
If you have a constellation like:

text
image
text


You should use 3 ContentParts:

ContentPart 1: Imagetext
ContentPart 2: image < div>
ContentPart 3: imagetext


BELEEVE ME, IT IS THE BETTER WAY!!!

Re: Switching "/" to "?" in cmsimage.php link

Posted: Fri 17. Jul 2015, 13:41
by Oliver Georgi
Just use a global replacer in frontend_render:

Code: Select all

$content['all'] = str_replace('cmsimage.php/', 'cmsimage.php?', $content['all']);

Re: Switching "/" to "?" in cmsimage.php link

Posted: Fri 17. Jul 2015, 17:37
by trixs
Oliver, thank you for your tip, it's the thing I was looking for.
Old Boy, I use images inside of CKeditor ONLY when I need to have few pictures in one line, without any effects. I have not a lot of such pages, but its definetly exist. For all others I use the scheme similar to yours