How to set offset according to class="active"
shiroitatsu - April 1, 2009 - 17:58
| Project: | Views carousel |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have a working jcarousel that has a list of images that are links. It works as a menu that selects a node to display. There's always one link with class="active".
The question is: How to set offset so that it's in regard to that active link (it might be eg. active+3, so that image of the active node is always at the middle of carousel displaying 7 images).
Here is a kind of solution, but how could it be applied to Views carousel? (Could it be possible to make it a feature for the module - so that you can choose in views to use active as the base of the offset?) Would be really useful!

#1
Not possible?
#2
It's not currently possible. But, with one minor change it would be possible. viewscarousel_get_options() as a theme function would allow you to override it and change the offset programatically.
#3