Closed (fixed)
Project:
Views Isotope (Deprecated)
Version:
7.x-2.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
22 Sep 2015 at 12:42 UTC
Updated:
15 Oct 2015 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mads-thines commentedI've found a solution
If anyone is interested in the isotope function with usage of a taxonomy image.
- The problem -
In views I have selected taxonomy term with the a .isotope-filter added as CSS classes so the function know which target it is.
I wanted to show the taxonomy image and this is where the problem occurred. Instead of plain text I selected image under the "Formatter" but then isotope sort function stopped working. If you look at Image 1 the green bubble in the top is the taxonomy image.
- The solution -
I added a second taxonomy term in the views fields and changed it plain text so that the .isotope-filter works and then just hid it by CSS. The HTML and javascript can find the .isotope-filter and execute the function as a plain text format, but still has the appearance which of the taxonomy image.
(SEE IMAGE FOR BETTER UNDERSTANDING)
Good day folks!
MT.
Comment #3
mads-thines commentedComment #4
Reuben Unruh commentedThis also works for 7.x-2.0-alpha1 by adding a new formatter for taxonomy terms to the manage display page. Put this code in views_isotope.module or in your own custom module (replace
views_isotopewith your module name at the beginning of each function).