Custom popup in image field

More
12 years 8 months ago #29370 by Rooney
Hi,

I followed this flexicontent.org/forum/index.php ... pic#p27355 to add the lightbox of Widgetkit as a popup option to the image field. With the latest modifications of the image field I cannot get it t work anymore. I have copied and adapted the following from the Roxbox option:

index.xml:
Code:
<option value="1">FLEXI_FIELD_IMAGE_MULTIBOX</option> <option value="2">FLEXI_FIELD_IMAGE_ROKBOX</option> <option value="3">FLEXI_FIELD_IMAGE_JCEMEDIABOX</option> <option value="4">FLEXI_FIELD_IMAGE_FANCYBOX</option> <option value="5">FLEXI_FIELD_IMAGE_WIDGETKIT</option>

index.php:
Code:
} else if ($usepopup && $popuptype == 5) { // Widgetkit $group_str = ''; // no support for image grouping $field->{$prop}[] = ' <a data-lightbox="on" href="'.$srcl.'" '.$group_str.' title="'.($desc ? $desc : $title).'">'.$img_nolegend.' ';

The problem is that nothing is included in item view. The other options work. Do I have to add something else?

Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29411 by ggppdk
Replied by ggppdk on topic Custom popup in image field
Hello, i have added fancybox (built-in) support in r1517

are you sure you want to try using lightbox ? does it not use prototype js library which conflicts with mootools js library ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29414 by Rooney
Replied by Rooney on topic Custom popup in image field
Hi,
well, I am using Yootheme's Widgetkit for small galleries and other stuff. So the JavaScript library is loaded anyway. I had it working with the "old" image field without problems. Example: www.muenstermann.com/uebersicht/ ... atten.html

It seems that I am just missing something, because the image field changed. Before I used

and this was working.
Code:
} else if ($usepopup && $popuptype == 4) { $field->{$prop} = ' <a data-lightbox="on" href="'.$srcb.'" title="'.$alt.'"> <img src="'. $src .'" alt ="'.$alt.'" />';
Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29427 by ggppdk
Replied by ggppdk on topic Custom popup in image field
i don't know of it , does it need something more like class="lightbox" or also some dom-ready command?

see documentation of it and verify you did everything needed

also r1517 has fancybox but it will require loading of jquery (image field will load all js/css automatically)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.313 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save