Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

gallery-effect in the ecommerce-module

Go to End

2 Posts   1285 Views


Community Member, 10 Posts

4 August 2009 at 9:01pm

hi guys,

ive got a problem.

i use on a website the ecommerce-module and i want to open the product-pictures with lightbox or something like that...

i install the image_gallery-module and included the required files in the

<link rel="stylesheet" type="text/css" href="/image_gallery/css/ImageGallery.css" />
<link rel="stylesheet" type="text/css" href="/image_gallery/css/lightbox/jquery.lightbox-0.5.css"/>

<% require javascript(jsparty/jquery/jquery.js) %>
<% require javascript(image_gallery/javascript/lightbox/jquery.lightbox-0.5.js) %>
<% require javascript(image_gallery/javascript/lightbox/lightbox_init.js) %>

and in the of the ecommerce-module i use this for the image:

<% if Image.ContentImage %>
<a id="ViewLink-$ID" rel="lightbox" class="lightbox" href="$Image.URL"><img class="productImage" src="$Image.ContentImage.URL" alt="" border="0" /></a>
<% else %>
<img src="ecommerce/images/productPlaceHolderNormal.gif" alt="<% sprintf(_t("NOIMAGE","Sorry, no product image for &quot;%s&quot;"),$Title) %>" />
<% end_if %>

the problem is... the picture do not open with lightbox and i dont know what the error is...

can someone help me?

here is the url:
i want to open the picture on the left site....

thank you for helping me...



Community Member, 37 Posts

18 August 2009 at 3:22pm

Hi there,

I hope this isn't too late but my guess is you have some onload code in your body element that is overwriting the onload which the lightbox uses to attach listeners to links.

Try removing the onload code from the body element and see what happens.