I'd like to have the ability to customize the following part in the view, or if not possible at least through argument handling code:

<?php
function jcarousellite_add_view_js($vid, $c) {
  return "
    $('.jcarousellite-$vid-$c .item-list').jCarouselLite({
        btnNext: '.jcarousellite-next-$vid-$c',
        btnPrev: '.jcarousellite-prev-$vid-$c',
        mouseWheel: true,
        visible: 4
    });";
}
?>

Comments

owahab’s picture

Version: 5.x-2.x-dev » 5.x-2.0-beta2
Status: Active » Fixed

As of beta 2, the function mentioned above has been renamed to jcarousellite_add_view_js_default() so now you can declare a function with the name "jcarousellite_add_view_js" which takes exactly the same parameters and do whatever customizations you want.

Prior to beta 2, you needed to declare a function named "jcarousellite_add_view_js_vidX(), where X is the view ID, for every view.

moonray’s picture

Could you provide an example?
Where would you do the overriding?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.