Active
Project:
Views Galleriffic
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Aug 2012 at 18:39 UTC
Updated:
21 Dec 2012 at 15:06 UTC
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
Comment #1
quinns commentedI'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;Comment #2
acouch commentedThanks 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.
Comment #3
JuggoPop commentedSubscribing