C5 Slideshow the build in one - HELP

Permalink
Hello.

So i want to use the build in slideshow that comes with C5, but i need to go into the code and add a max-height and a max-width for the images, would some kind soul help me with this? Im looking in the view.php and controller.php files, but i cant figure out what to change without messing up something else.

I need it for a project with a dealine in 8 hours, so any quick help is appreciated.

Thank you in advance.

 
berteldk replied on at Permalink Reply
Im the only one working in weekends??? :-) Would really appreciate some assistence.
mkly replied on at Permalink Reply
mkly
This is around line 88 in view.php of the slideshowblock. I don't know if this works or not really, but might get to on your way.
<?php
$ih = Loader::helper('image');
$thumb = $ih->getThumbnail($f, '800', '400');
?>
fileName:"<?php echo $f->getFileName()?>",
fullFilePath:"<?php echo $thumb->src?>",
duration:<?php echo intval($imgInfo['duration'])?>,
fadeDuration:<?php echo intval($imgInfo['fadeDuration'])?>,      
url:"<?php echo $imgInfo['url']?>",
groupSet:<?php echo intval($imgInfo['groupSet'])?>,
imgHeight:<?php echo $thumb->height?>
berteldk replied on at Permalink Reply
thank you - i will test later today and reply if it was a success :-)