Closed (works as designed)
Project:
jCarousel
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2011 at 11:46 UTC
Updated:
24 Jan 2013 at 03:27 UTC
Jump to comment: Most recent
Comments
Comment #1
lekvarnik commentedOne more time, because it messed up the code.
I suppose it should be like:
Comment #2
quicksketchCould you post the entire query you're seeing? jCarousel does a COUNT() query (with no limit) to get the total number of items in the entire list so that it can pager properly, perhaps that's what you're seeing? jCarousel doesn't affect the total number of items queried, so it shouldn't be changing the original query in any way.
Comment #3
quicksketchReopen if you have further input.
Comment #4
Dandily commentedI have the same problem with limiting jcarousel items from views. I have about 4000 images, so when i want to show only first 20 - module show all of them, ignoring Views show limit.
To correct this i changed this in jcarousel.views.inc:
comment line 63
//$view->pager['items_per_page'] = $last - $first;comment line 75
//$view->items_per_page = $last - $first;before:
add
For now jCarousel will use Views limits for items and will not use when limit is set to 0.
Comment #5
mikat commentedWith the version 7.x-2.6 you can set the "Display a specified number of items" by changing lines 156-157 at jcarousel.views.inc
This will read the value from the views pager. You can still use the jcarousel pager but this will set the total amount items fetched.