Closed (works as designed)
Project:
Views Isotope (Deprecated)
Version:
7.x-1.0-beta1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2012 at 11:52 UTC
Updated:
5 Sep 2012 at 19:26 UTC
Comments
Comment #1
kreynen commentedSorting doesn't require any changes to the View output, but on my test site I had to add the getSortData to the views_isotope.js. I changed this...
To include the classes of the fields I added...
The Isotope sort is simply targeting the class of fields within the isotope item after they've been loaded to the screen, so add the fields and customize the style so that the field is wrapped in a div with a unique class you can traget. I've added a sort to http://isotope.alittlehelphosting.com/isotope-example that sorts by the nid using Isotope by targeting isotopenid. This creates HTML output that looks like this...
Then I added the sort as a View Header...
Finally, I used http://drupal.org/project/js_injector to add this javascript to only the isotope-example path
I'm sure this can be cleaned up to make it easier for the module to support, but I was able to add a sort.
Comment #2
maerys commentedThank you very much. This helps a lot and works perfectly.