Allow Circular Wrap
Rabbit69 - November 10, 2008 - 07:41
| Project: | Views carousel |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | mfer |
| Status: | closed |
Jump to:
Description
I'ld like an option to define a cylce mode instead of foreward/backward sliding and reset to start.
Do you think it's possible to integrate this option.

#1
This module is a wrapper for jcarousel. If you can do it with jcarousel it can be implemented here. See http://sorgalla.com/jcarousel/
#2
jcarousel can do it, it's called circular caruousel.
Look at this http://sorgalla.com/projects/jcarousel/examples/special_circular.html
#3
I see what you are getting at. There is an issue where it works file in jQuery 1.2.3 but not quite right in jQuery 1.2.6. I commented out the option in the options form. There is an issue with jcarouse3l that needs to be worked out.
To see the problem in action go into the file viewscarousel_style_plugin.inc and see the comment on the last option on the $form array. You can add 'circular' => t('Circular'), to the list of options and then give it a go.
#4
Postponing this until jcarousel is fixed for this to work. The issue is with jcarousel.
#5
JQuery is up to v1.3.2 now. Has cycle mode been investigated recently? The current viewcarousel reset-to-start effect is not pleasing.
Also of interest might be: http://www.malsup.com/jquery/cycle/
#6
That's the jQuery Cycle plugin and isn't really related to jCarousel.
We could look into the circular wrap in the 6.x-2.x-dev branch because it now uses the jCarousel module, which supports the JavaScript callbacks. The reason the circular wrap doesn't work is because we HAVE to register some callbacks (as seen here, and that support wasn't available in the 6.x-1.x-dev version of Views Carousel. Now that callback support is in available, we could look into adding the circular support.
#7
Here's the Views Cycle module: http://drupal.org/project/views_cycle
#8
Yes, I ran across that and it's a consideration; however, it would be nice not to have to set everything up again.
Plus, views carousel really does need this cycle feature. The manner the reset is handled now isn't visually pleasing.
I hope you developer folks are discussing the creation of an über views carousel/rotator/slide module to combine the best of the field.
#9
Subscribing. I have both a horizontal and a vertical going, works great. Would love to have them circular instead of swing back to beginning.
#10
Yep, me too. I am using views-carousel (thanks for the module!) and it would be great to see it with a circular wrap feature one day.
#11
Subscribing
#12
Great module.
If you send me some pointers, I will try to come up with a patch to add circular support.
#13
@jjesus - the issue is a compatibility one. The jcarousel plugin with jQuery 1.2.6+ has a bug where the circular feature doesn't work. To make it work here we need to fork jcarousel and fix the bug.
I will be fixing this issue in the next couple weeks and need to keep a forked version somewhere.
#14
Due to the way the jcarousel module is setup and used I couldn't find a good way to add the circular feature to the 2.x version of views carousel. But, I was able to add this feature to the 1.x branch. Please let me know if it's working for you.
Currently, in order to add it to the 2.x branch means forcing certain callbacks in the jcarousel module and removing some flexibility other modules may want to take advantage of. Working on a better way now.
#15
Hi, Matt,
Thanks so much for doing this work!
The circular wrap works for me, both horizontal and vertical. I upgraded/downgraded from Carousel 2.x to 1.x. All my theming was preserved, which was a nice surprise.
My upgrade procedure was something like this (YMMV):
1. Disable viewscarousel 2.x. My 2.x version was in sites/all/modules
2. Untar viewscarousel 1.x in site-specific directory sites/example.com/modules
3. Enable 1.x version
4. Edit the view and select circular
I only wish the scrolling was a little smoother like the flash carousel on this site:
http://www.sab.org/
Otherwise, 1.x circular works great.
Cheers.
--John
#16
You can see the circular wrap here:
http://www.aidantbooks.com
Vertical version:
http://aidantbooks.com/content/about-us
#17
Hm, my themeing has been thrown out by the downgrade to 1.x so can't go with this, though pretty keen on circular transition. Hope you manage to crack it for 2.x mfer...
thanks
#18
What's missing from Views Carousel 2.x that allows the wrapping?
#19
I would really like to have this in 2.X branch too...Subscribing
#20
subscribe...
#21
Haffmans hit up #619958: Support Circular Carousels. So it's part of the Views Carousel 6.x-2.x-dev branch now. http://drupal.org/cvs?commit=284608
#22
Looks like it's only been included in the 6.x-1.x version. Am I missing something?
#23
I only added it to the 1.x module. I'm working through the 1.x version to clean it up. There are a bunch of people using it and there is really just a few bugs to fix and then it's really production ready. Then i'll update the 2.x version and get a release out. It will include some of the new features people want.
So, I'll open this one back up.
#24
Haffman added the support to jCarousel module at #619958: Support Circular Carousels. I committed the option availability to Views Carousel 2.x branch at http://drupal.org/cvs?commit=284608 . Both 1.x and 2.x have the circular wrapping now :-) . Just wait for a dev snapshot update of both Views Carousel and jCarousel modules.
#25
Yay!
#26
Automatically closed -- issue fixed for 2 weeks with no activity.