Custom Slideshow image size overwritten
I have followed Jordan Lev's excellent tutorial on how to build a custom slideshow block (http://c5blog.jordanlev.com/blog/2011/12/build-a-slideshow-block/). This is my first attempt at using c5 and creating a custom block, so to be able to get it done in an hour or so was credit to the explanation in the tutorial. I've asked this question over at the tutorial page but it's extremely urgent and I've not had any help so far.
I have adapted RoyalSlider (http://dimsemenov.com/plugins/royal-slider) for use in c5, but one problem I'm having is to do with the image sizes. I usually use this plugin on static sites to achieve a full-screen responsive background image slider, that fills the screen and centres no matter what the resolution/viewport size. I have managed to get the block working and referencing a file set, but the images show up at their original size rather than stretching to fill the window. The 'fill' is triggered by a jQuery option which obviously changes the style of each image dynamically, but I think that the size options (original size etc) presented to the user are overriding this. I've tried removing chunks of code related to the width/height of the image from the blocks controller.php but it just returns errors as I'm a bit of a php noob. I know that the jQuery options that include the 'fill' setting are active and working because the slider autoscrolls, which is another of the options. So in my mind it must be the 'size options' that I'm forced to select in the front end disrupting it.
Here is the blocks view.php:http://pastie.org/pastes/5422873/text...
Here is the blocks controller.php:http://pastie.org/pastes/5422868/text...
I would love it if someone could point me in the right direction, as I'm really at a loose end with this!
It's time critical though, so it looks like I'm going to have to just buy the Dojo Supersized addon, then try to add touch/swipe with jQuery on top.
Have you looked at:
Click on 'View Project Gallery'
Do you have a correct block now ?
I am looking for this.
I need a slider with link on image.