noahrod
noahrod

Reputation: 43

BannerSlider Extension

I'm using the BannerSlider Extension and it works great but for design purposes I need it to include it in a template.

At this moment I'm using it with the CMS like this:

{{block type='bannerslider/bannerslider' template='bannerslider/bannerslider.phtml'}} 

How can I get the PHP code for that single line, to add it directly to my template ?

Upvotes: 0

Views: 184

Answers (1)

Palanikumar
Palanikumar

Reputation: 1746

Create cms/block and place your code

{{block type='bannerslider/bannerslider' template='bannerslider/bannerslider.phtml'}}

and then you can call anywhere in template that cms/block like this

<?php 
     echo $this->getLayout()->createBlock('cms/block')->setBlockId('YOUR IDENTIFIER')->toHtml() 
?>

Upvotes: 1

Related Questions