Page 1 of 1

slash problem (wrong images url and links)

Posted: 02 Dec 2011, 17:33
by nico65
Hi,

I have a strange problem, when I enter Images and links in the Marker Description I can see the images in the JCE Editor in the Backend, but I can' t see the Images in the Frontend Marker bubble.

That is because the first slash is missing.

My output is src"images/stories/image.jpg" but it should be src"/images/stories/image.jpg"
The Problem only occurs when sef and mod_rewrite are on.
Is there a way to put the first slash in the src and href url?



Joomla 1.5
Phoca Maps: 1.1.1

Re: slash problem (wrong images url and links)

Posted: 04 Dec 2011, 18:59
by Jan
Hi, I think you need to customize the code then - if some part does not save the path right for your site :idea:

maybe here:
components\com_phocamaps\views\map\tmpl\default.php

add some str_replace for changing the path of images in marker description.

Jan

Re: slash problem (wrong images url and links)

Posted: 06 Dec 2011, 10:44
by nico65
Hi Jan,

thank you for your quick response. Right now I have updated jce so at least the manual set slash stays and don't get eliminated by jce, but if you or someone else maybe could post some lines of php code to check if a first slash after src=" or href=" exist and if not just put one in.

That would be really awsome.

I was fiddeling with the code but did'n get it.


Nico