Hello,
If you use special chars (like é,è,à... french ones in my case) in taxonomy/tags names, the data-option-value in the views-isotope-filter-block.tpl.php is not enough cleaned I think.
I used pathauto_cleanstring() function to sanitize more the names...

My problem was that I printed some isotope-item with class="creation" for example, but the filter was data-option-value=".création"... Obviously it didn't work :-)

My solution was to use pathauto in views-isotope-filter-block.tpl.php :
At the top of the file after the comments :
<?php module_load_include('inc', 'pathauto'); ?>
And then :

<?php 
      // remove characters that cause problems with classes
      // this is also do to the isotope elements
      $dataoption = trim(strip_tags(strtolower($row)));
      $dataoption = str_replace(' ', '-', $dataoption);
      $dataoption = str_replace('/', '-', $dataoption);
      $dataoption = str_replace('&amp;', '', $dataoption); 
      //new line with pathauto
      $dataoption = pathauto_cleanstring($dataoption);

      ?>

And a big Thanks for your module !

David

Comments

kreynen’s picture

The strings need to be converted the same way in both views-isotope.tpl.php and views-isotope-filter-block.tpl.php. I actually left a note in views-isotope.tpl.php to look at drupal_clean_css_identifier. I think that will work better that a pathauto function since it's in core, but please test and let me know.

http://drupalcode.org/project/views_isotope.git/blob/refs/heads/7.x-1.x:...

Chris Gillis’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
anou’s picture

Hello,
I found this post, written by me 3 years ago. I discover that the problem is still there even with the 7.x-2.x-dev version...
But this time, I can't find where to modify some code to make it work. Maybe around line 98 of views_isotope.theme.inc file.

return trim(check_plain(strip_tags($filter_value)));

This line should be much more parsed, even if you don't use special chars, because it leaves spaces between multiple words filter... Not good to create a class name...