Hi,

I wanted to create a slideshow within a node. Therefore I defined a custom trigger class "slideshow". Than I wanted to add another class, that only a view images are shown on the node (but all in the lightbox), i.e. Only local images are allowed. and Only local images are allowed. But as result I got two separeted slideshows...

Anybody who knows a solution for this problem?

Thanks a lot
Filburt

Comments

filburt’s picture

Oh my html-tags were killed - sorry: Once again:

Hi,

I wanted to create a slideshow within a node. Therefore I defined a custom trigger class "slideshow". Than I wanted to add another class, that only a view images are shown on the node (but all in the lightbox), i.e. img class="slideshow preview" and img class="slideshow no_preview" But as result I got two separeted slideshows...

Anybody who knows a solution for this problem?

Thanks a lot
Filburt

stella’s picture

I'm not totally clear on the problem. You've added a custom trigger class "slideshow" in the lightbox2 config? And then created two images on the same node with the classes "slideshow preview" and "slideshow no_preview" and when the images are clicked you get 2 separate slideshows, rather than having all images in the one? Hmmm sounds like a bug if so, will have to check in to it.

Cheers,
Stella

p.s. to avoid the html tag issue, just put your code within <code>...</code> tags in future.

filburt’s picture

Hi Stella - you've desribed the problem exactly.

Thanks for the fast support!

Greetings, Filburt

filburt’s picture

Hi Stella, any progress in fixing this bug?

Thanks + greetings Filburt

El Bandito’s picture

Hi

I think I've hit this one too with 6.x-1.9. I'll try to explain.

I have a sidebar block with 4 images. The anchor tags around ALL the images have rel="lightbox[epic]" to create a slideshow. Two of the images have the class="sbphoto mceItem" ( mceItem class is added automatically by TinyMCE editor for some reason ). The other two images have class="sbphoto photowithcredit mceItem".

On the Automatic Image handling page I have set "Within Automatic handler for custom class images:" to "Lightbox grouped" and the "Custom image trigger classes:" to "sbphoto".

When I click on one of the images the slideshow grouping is along the lines of the CSS classes i.e. if I click on an image with class="sbphoto mceItem" it is grouped into a slideshow of 2 with the other image with the same 2 CSS classes. Similarly if I click on one of the images with class="sbphoto photowithcredit mceItem" I get another 2 image slideshow of the images with the same 3 CSS classes.

When I view the page source of the anchor via FF it looks fine :

a title="rocky mountains" rel="lightbox[epic]" href="sites/default/files/images/sidebars/epic/photo1.jpg">

However when I use Firebug to examine the very same source the code for the anchor looks scrambled like this :

a class="lightbox-processed" href="sites/default/files/images/sidebars/epic/photo1.jpg" rel="lightbox[sbphoto photowithcredit mceItem][rocky mountains]" title="rocky mountains">

Any suggestions appreciated. I will try to copy an example to a live site tomorrow.

Cheers

Dave

locomo’s picture

i think i was having the same issue - i found a solution and proposed a feature request here:

http://drupal.org/node/627262