Hi,
I have been trying to implement galleryview on a custom page type of my SS 2.3.3 installation. It requires 4 javascript files & 1 css. The parameters are set in a small chunk of javascript in the header using the script tag. I have tried the following:
Page.php
class Page_Controller extends ContentController {
public function init() {
parent::init();
Requirements::javascript('mysite/javascript/jquery_timers_2.js');
Requirements::javascript('mysite/javascript/jquery_galleryview_2.js');
Requirements::javascript('mysite/javascript/jquery_easing_1_3.js');
Requirements::javascript('mysite/javascript/jquery_1_32.js');
}
}
------------------------------------
CustomPageType.php
class CustomPageType_Controller extends Page_Controller {
public function init() {
parent::init();
Requirements::css('themes/blackcandy/css/galleryview.css');
}
}
-----------------------------------
and added the javascript block to the header of the custom page type .ss file:
CustomPageType.ss
<script>
$(document).ready(function(){
$('#gallery').galleryView({
panel_width: 800,
panel_height: 300,
frame_width: 50,
frame_height: 50,
easing: 'easeInOutQuad',
});
});
</script>
---------------------------------
Here are the following errors that show up in IE
Webpage error details:
Message: Object expected
Message: 'jQuery' is undefined
Message: 'jQuery' is undefined
Message: 'jQuery' is undefined
From the above I assume the javascript files required by galleryview are not being included properly resulting in the unexpected object. I have been messing around with this long enough to know I need to pull over and ask for some direction =). Can someone please provide me with some insight, it is much appreciated!
-Matt