Forums / Developer / In ezflow extension when we use multimedia carousal , need to change the deault bloc 3 into 2

In ezflow extension when we use multimedia carousal , need to change the deault bloc 3 into 2

Author Message

Romeo Antony

Thursday 08 July 2010 1:36:41 am

Hi, can anyone plz help me ...Very small point missing.

In ezflow , when I use multimediacarousel block , it shows 3 items ,

and when I click on next and previous button , it shows overall 3 blocks.

Can I limit into 2 blocks

Since I have only 6 pictures .(one block contain 3 images)

Anyone plz let me know where do I make change in javascript

var offset = 0;
var limit = 3;
var total = {$block.valid_nodes|count()};
var handleRequest = function(e) {ldelim}
var className = e.target.get('className');
if ( className == 'carousel-next-button' ) {ldelim}
offset += 3;
if ( offset > total )
offset = 0;
{rdelim}
if ( className == 'carousel-prev-button' ) {ldelim}
var diff = total - offset;
if( offset == 0 )
offset = Math.floor( total / 3 ) * 2;
else
offset -= 3;

Which number I need to change ..