Needs review
Project:
jCarousel Lite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2009 at 18:07 UTC
Updated:
4 Oct 2011 at 02:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
owahab commentedI have added a section to the module's documentation which should answer your question.
Comment #2
ptitb commentedThank you for the update!
I looked for the section but can't find it in the documentation.
Where would I be able to find the guidelines to override a function?
Also in the documentation you mention that it is possible to change a template file to edit the arrows,
but when I open this template file I don't see any code refering to the arrows.
If I would be able to overide the function I could change the arrows there.
Thank you in advance!
Comment #3
ptitb commentedstatus change
Comment #4
jm.federico commentedThis info would be great, I'm lost there too!
Comment #5
neilnz commentedI also couldn't find this functionality. I needed to add an afterEnd callback to the carousel that views was adding.
I've patched the jcarousellite_views module to support drupal_alter() on the js params, so another module can add to them or change them, eg.
It also uses drupal_to_js() instead of manually writing the config vars. I think it would be cleaner still to put the config in Drupal.settings then have a behaviour that sets up the carousel, but that's another issue.
Comment #6
neilnz commentedActually had to revise this. The beforeStart and afterEnd params are JS functions that can't be passed as a string, so have to manually detect them and not escape the function names. Revised patch attached.
Comment #7
neilnz commentedSorry that patch had some extraneous stuff in it. Here it is again with just the jcarousellite_views.module file.
Comment #8
dkingofpa commentedModified the patch in #7 so that it can be applied from the root of the module instead of neilnz's special paths.
Comment #9
dkingofpa commentedRe-rolled patch in #8 so the call to drupal_alter will work in PHP 5.3. This will also still work with PHP 5.2