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 ..

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:09:38
Script start
Timing: Jan 30 2025 21:09:38
Module start 'layout'
Timing: Jan 30 2025 21:09:38
Module start 'content'
Timing: Jan 30 2025 21:09:39
Module end 'content'
Timing: Jan 30 2025 21:09:39
Script end

Main resources:

Total runtime0.0254 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.6406151.2734
Module start 'layout' 0.00510.0046 739.9141220.8594
Module start 'content' 0.00970.0141 960.7734997.9297
Module end 'content' 0.02380.0015 1,958.703129.9922
Script end 0.0253  1,988.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.0943140.0002
Check MTime0.00114.3999140.0001
Mysql Total
Database connection0.00072.626210.0007
Mysqli_queries0.002911.322730.0010
Looping result0.00000.098710.0000
Template Total0.00114.310.0011
Template load0.00093.418610.0009
Template processing0.00020.808410.0002
Override
Cache load0.00062.266210.0006
General
dbfile0.00207.816780.0002
String conversion0.00000.038540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs