I have problem with inserting custom block/template into cms page editor. If I put the below code to header.phtml it works fine and it displays content inside home page:
echo $this->getLayout()->createBlock('company_slider/slider')->setTemplate('company/slider/slider.phtml')->toHtml();
But if I try to insert this into cms page it won't display anything:
{{block type="company_slider/slider" name="slider_slider" template="company/slider/slider.phtml"}}
I have these lines in extension config file:
<global>
<blocks>
<company_slider>
<class>Company_Slider_Block</class>
</company_slider>
</blocks>
</global>
Am I missing anything? I guess paths are correct because it works if I insert block directly to phtml file as shown above.
{{block type="core/template" name="slider_slider" template="company/slider/slider.phtml"}}