Showing image inside modal window in ccv [almost solved]

carloso 02 Nov, 2014
So, my chronoconnectivity list is having this small thumbnail image :
Showing image inside modal window  in ccv [almost solved] image 1

what i do next is, i want that image to show in "modal" when it clicked, but what happen next is the modal windows shows the image code , it is not showing the image, something like this :


����JFIF``��C      ��C��2"�� ���}!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������� ���w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz���������������������������������������



here is my body code from the "Custom Listings" to show the thumbnail and link to a bigger image:


<td><a class="modal" href="http://localhost/mywebsite/userdata/{imagelink}"  rel="{handler:'image'}"><img width="50" height="25"  src="http://localhost/mywebsite/userdata/{imagelink}"></a></td>



Any suggestion why the modal is not working ? it's working fine on the normal joomla article
GreyHead 03 Nov, 2014
Hi Carloso,

I can't think of any explanation for this. There is nothing I know of in CC that will change the URL like this.

If you put the listing on-line so that we can see it there might be some clues.

Bob
carloso 03 Nov, 2014
Hi Bob,

Sorry maybe i'm not too clear , it's not changing the URL , it's changing the image format , you know it's like if you drag an image file to a notepad , the output is something like that .... like this:

Showing image inside modal window  in ccv [almost solved] image 2
GreyHead 03 Nov, 2014
Hi Carloso,

Ah OK - it's treating the image as a text file instead of an image file. I can only that there's something odd with the link you are building. What do you see if you look at the page HTML with View Source?

Bob
carloso 03 Nov, 2014
ah you are right ..i should've done that

in the html - view source , the " {handler:'image'}" is missing , so it's only rel=""

my guess it is because chronoconnectivity strippped the curly bracket {
GreyHead 08 Nov, 2014
Hi Carloso,

Hmmmm . . . that makes sense, the RePublisher sees anything in curly brackets as a possible form value and tries to replace it. I don't have a good solution for that :-(

I wonder if Max has any suggestions?

Bob
Max_admin 08 Nov, 2014
Answer
1 Likes
Maybe try to replace the {} by their html entities so they don't get replaced by CC, so it should be:

{handler:'image'}


But I'm not sure if that will work!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
carloso 10 Nov, 2014
it works !!

thanks a lot
This topic is locked and no more replies can be posted.