The stripped version of Alt and Title also gets stripped of spaces, not just html code.

So on mouse over the image, I get "FaçadeprincipaledelamaisonJohnKennethLevesonRosssurlaruePeel.Lebâtimentestrevêtud’unparementdepierrecalcaire,2012." instead of "Façade principale de la maison John Kenneth Leveson Ross sur la rue Peel. Le bâtiment est revêtu d’un parement de pierre calcaire, 2012."

Comments

quinns’s picture

I've noticed this too. There's a comment in the code about it:

"Slideshow can break if there are spaces or '#' in the title."

A quick work-around is to remove the Title attribute from the image itself. Replace the line:

$vars['fields']['title']->stripped = str_replace('#', '', str_replace(' ', '', strip_tags($vars['fields']['title_field']->content)));

with:

$vars['fields']['title']-> stripped = null;

acouch’s picture

Thanks quinns for the note.

Yeah, I found that the slideshow breaks with spaces. Maybe it would have been better to replace with '-' instead of no spaces. I did this a while ago so also can't recall if this was addressed upstream or not.

Looking back now this wasn't an optimal way of fixing this as it should have been addresses upstream or in the js, but I knew a lot less about coding in general and js back when I created that fix. Will try and look for a more appropriate fix next time I sit down to work on this module. Probably won't be for a while.

JuggoPop’s picture

Subscribing