Closed (fixed)
Project:
jCarousel
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2011 at 17:06 UTC
Updated:
4 Dec 2011 at 23:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
rickmanelius commentedSubscribe
Comment #2
quicksketchThis sounds like a good idea but we should probably put this count somewhere that is more appropriate. We shouldn't just shove the value in
$view->total_rows, because it's not at all clear that this value would be coming from jCarousel module. We need to put it somewhere within the jcarousel settings within the View.I don't have any immediate need for this functionality, so a patch would be appreciated to get this moving.
Comment #3
quicksketchWell upon further thought, it looks like Views module already puts the total in $view->total_rows if you set $view->get_total_rows = TRUE. So there's already a way to get this count, but you probably don't want Views to be doing the count query twice. So ultimately I think we'll actually take your suggestion directly and put the count in $view->total_rows, since that's where Views would put the count if you'd asked it to be generated.
I've committed this patch to both 2.x branches.