If I add to page two or more views with same id and display (but different args), jcarousel have for all carousels equal number of items, so some carousels are cutted or have empty items.
This issue exists because jcarousel store settings like this:
$identifier = drupal_clean_css_identifier('jcarousel_view__' . $view->name . '__' . $display_id);
So two views have the same identifier and overwrite settings.
I think that the good way to solve this issue is add dom_id value to identifier, or maybe any knows some better way?

Comments

quicksketch’s picture

Thanks, looks like you're right here, but I'm not sure what to do to correct this problem. Views gives each individual view (or instance of the same view) a unique dom-id class, but we don't know what that class will be until the view has been printed to the page.

murz’s picture

Maybe we can use static counter variable in this function that increase value on each new jcarousel created?

quicksketch’s picture

I think we need to implement the suggestion in #1095504: Make AJAX loading optional when "Use AJAX" is enabled in the view, which would completely decouple the Views AJAX setting from the jCarousel AJAX setting.

quicksketch’s picture

Status: Active » Fixed

This issue should be fixed by the entirely new approach in #1095504: Make AJAX loading optional when "Use AJAX" is enabled in the view. We're now keeping our own AJAX settings so we're not dependent upon Views' DOM IDs, as we're now making our own.

murz’s picture

Yes, applying patch from #1095504: Make AJAX loading optional when "Use AJAX" is enabled in the view solve this issue for me. Thanks!

quicksketch’s picture

Great! I actually made a new release (2.6) that you can download directly from the project page or with drush, rather than using the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.