Referencing slideshow block programatically

Permalink
Hi, I want to include a slideshow in a theme I am working on. So how do I go about referencing this block in my code?
Thanks.

 
russgrue replied on at Permalink Best Answer Reply
I figured it out.... Here is the code....

<?php
    $bt = BlockType::getByHandle('slideshow');
    $bt->controller->defaultFadeDuration = '2';
    $bt->controller->defaultDuration = '5';
    $bt->controller->fadeDuration = '2';
    $bt->controller->duration = '5';
    $bt->controller->minHeight = '189';
    $bt->controller->playback = 'ORDER';
    $bt->controller->type = 'FILESET';
    $bt->controller->fsID = 4;
    $bt->render('view');
?>


Hope it helps someone.

Russ