Closed (fixed)
Project:
Views cycle
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2009 at 17:08 UTC
Updated:
22 Oct 2009 at 23:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
criznach commentedSorry - filter ate my markup. Should have read:
removes the semantically useful <ul> container for the thumbnails.Comment #2
Crell commentedThe switch to hidden divs was necessary to better support Ajax paging, which was only barely functional before. If it's now buggy I am totally open to a patch to make it less buggy, but going back to the hacked-up mess with trying to regenerate Drupal.settings within an AHAH callback isn't a good idea.
Comment #3
criznach commentedI'm not suggesting going back to the settings method. And I'm not very experienced with how views style plugins work. But... Is there a way that we can add the thumbnail data just once at the end? Adding it to every slide is causing validation problems and bloats the markup.
And by ajax paging, do you mean ajax loading of the content? This is what I was looking for when I updated the module, but I still can't get it to work. Is there an example or some docs? If I could look at the ajax scenario you'd like to support, I might be able to work on it a bit.
Thanks!
Chris.
Comment #4
criznach commentedHere's a patch that cleans up the markup by moving the thumb data into a single unordered list below the slides. This eliminates duplicate IDs and creates markup that's more meaningful if JS and CSS are disabled. This also enabled me to run multiple cycle views on a single page without ID clashes.
I changed a couple of class names for consistency also.
"views-cycle-first" is now "view-cycle-first"
"views-cycle-last" is now "view-cycle-last"
These match the style of "view-cycle-even" and "view-cycle-odd"
Tested in FF3, IE6, IE7, Safari 2.
Comment #5
eabrand commentedworks great for me!
Comment #6
Crell commentedI fixed the whitespace formatting a little and corrected a code comment. Otherwise looked good. Thanks!