How can you add dynamic content above the CMS content?
I am currently trying to implement a full width banner slider above the content. The slider must be different on different pages so I need to be able to pass a variable, preferably through the xml because it needs to differ from each page and I cant use a template file eg: 3colums.phtml because it will use the same slider on multiple different pages.
I have attached an image below of what I want to achieve.
This is the code:
<reference name="content"> <block type="bannerslider/bannerslider" name="bannerslider" template="bannerslider/bannerslider.phtml"> <action method="setCategoryId"><category_id>2</category_id></action> </block> </reference>
echo $this->getLayout()->createBlock('bannerslider/bannerslider') ->setCategoryId('1') ->setTemplate('bannerslider/bannerslider.phtml') ->toHtml()