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
slash problem (wrong images url and links)
-
- Phoca Newbie
- Posts: 2
- Joined: 02 Dec 2011, 17:22
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: slash problem (wrong images url and links)
Hi, I think you need to customize the code then - if some part does not save the path right for your site
maybe here:
components\com_phocamaps\views\map\tmpl\default.php
add some str_replace for changing the path of images in marker description.
Jan
maybe here:
components\com_phocamaps\views\map\tmpl\default.php
add some str_replace for changing the path of images in marker description.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 02 Dec 2011, 17:22
Re: slash problem (wrong images url and links)
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
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