If I upload let's say 14 photos to the gallery, 7 thumbnails are shown by default and I click to the next arrow and click to any photo thumbnail, then the photo loads correctly, but the pager sets itself to the default position. i.e. I have to start paging again. Encountering this behavior on a fresh install, no change to the default settings, the ajax setting for the view page is activated.

Node Gallery 6.x-3.x-dev
Node Gallery jcarousel 6.x-1.0-beta2
Views 6.x-3.x-dev
jCarousel 6.x-2.2

Have created gallery on demo site http://ng3demo.sysadminsjourney.com/node/2897, everything works correctly there. What might be the reason of failure on my server? I'm thinking about only differences in module versions for now.

Comments

justintime’s picture

It's probably your views version - I have views2 on the demo site. Try that and report back.

yngens’s picture

Your guess proved right - with views2 it works just fine. However, on my production site views3 has already been installed and I wonder if this module will also support Views3.

I would switch back to Views2 just to get this module to function correctly, but changing on test site has given errors - Views3 has changed DB tables.

justintime’s picture

The line in theme.inc that says this:

$view->display[$viewkey['display_id']]->handler->override_option('offset', $offset);

Is the culprit. @dereine from the views team recommended that I use '$view->set_offset()', which didn't complain, but broke the offset for me on views2.

I'm going to have to open an issue for it in the views issue queue, but it will likely be next week sometime.

yngens’s picture

No hassle. The most important thing is the issue's cause has been identified and it will eventually be addressed. For now I switch jCarousel off.

Edit: For those who have already switched to Views 3 the only way is to wait for this to be fixed, there is no safe path for downgrading: #1006964: Safe path to downgrade from 6.x-3.x to 6.x-2.x

justintime’s picture

Title: jCarousel pager always resets to the beginning » jCarousel view offset doesn't work with Views3
Category: support » bug

Updating title and linking from project page as a known issue until I have time to track down a solution.

crea’s picture

You could simply detect views version and use specific function depending on result