Closed (duplicate)
Project:
jCarousel
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2011 at 12:04 UTC
Updated:
27 Oct 2011 at 00:24 UTC
If you create a jcarousel view with "circular " wrap content this causes an SQL error if you press the jcarousel "back" button. I guess in this situation the back button should really be disabled as it with "disabled" wrap content.
I don't need any help, I just wanted to report the issue.
Thanks.
Comments
Comment #1
hmt3design commentedThis is the error I get on this issue.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-3, 4' at line 12 query: SELECT node.nid AS nid, node_data_field_cartoon.field_cartoon_fid AS node_data_field_cartoon_field_cartoon_fid, node_data_field_cartoon.field_cartoon_list AS node_data_field_cartoon_field_cartoon_list, node_data_field_cartoon.field_cartoon_data AS node_data_field_cartoon_field_cartoon_data, node.type AS node_type, node.vid AS node_vid, node.created AS node_created FROM drup_node node LEFT JOIN drup_content_type_cartoon node_data_field_cartoon ON node.vid = node_data_field_cartoon.vid WHERE node.type in ('cartoon') ORDER BY node_created DESC LIMIT -3, 4 in /home/HOSTSERVER/public_html/SITENAME/sites/all/modules/views/includes/view.inc on line 771.
Is there a way to disable the "back button" when the first position image is #1?
Comment #2
hmt3design commentedPerhaps a "limit" option would be in order. For example, the number of images that I'm using as a source is 300+ and keeps going up as the client adds new images. I've set the "items to display" to 12. After the 12th image is shown, clicking on the "next" button loads image #13, #14 and #15 in the post date sequence. Can an option be added to only limit the carousel to those 12 images, then rotate back to image #1?
Comment #3
quicksketchJust limit the total number of items in the view as you would normally.
Comment #4
hmt3design commentedAnd where would I do that? I thought I had done so by selecting "Items to display: 12"
My settings are below:
Name: Defaults
Title: None
Style: jCarousel
Row style: Fields
Use AJAX: Yes
Use pager: No
Items to display: 12
More link: No
Distinct: No
Access: Unrestricted
Caching: None
Exposed form in block: No
Header: Filtered HTML
Footer: None
Empty text: None
CSS class: None
Theme: Information
Should something be created in the "Filters" section? If so, what?
Comment #5
quicksketchOh hmm, maybe I've forgotten how my own module works. Yes I was referring to "Items to display" being set to a specific limit. I'd forgotten that if you enable AJAX it just pre-loads the first items based off of "Items to display". For just 12 items, I'd suggest just disabling AJAX entirely (since if you've set the limit to 12, you're already loading all the items). But obviously fixing this remains an issue.
Comment #6
hmt3design commentedTurning AJAX off did fix the issue. Thank you.
Comment #7
quicksketchThis bug is a duplicate of #1022196: Going backwards causes error when using Ajax.