1

I want to use Displaze Protoshow slideshow on my home CMS page. The following code is suggested by Displaze to insert the slideshow in a CMS page:

{{block type="myslideshow/slideshow" template="displaze/myslideshow/slideshow.phtml"}}

If I use this code, I get the following error when the home page is loaded:

 ERR (3): Warning: include(): Filename cannot be empty  in /var/www/mage/app/code/core/Mage/Core/Block/Template.php

So I tried to use

{{block type="Displaze_MySlideshow_Block_Slideshow" setTemplate="displaze/myslideshow/slideshow.phtml"}}

The error is gone, but the block is still not rendered.

On request the block code:

class Displaze_MySlideshow_Block_Slideshow extends Mage_Core_Block_Template
{

/* Some function */
}

The extension etc/config.xml code:

<config>
<modules>
    <Displaze_MySlideshow>
        <version>1.7.1</version>
    </Displaze_MySlideshow>
</modules>


<global>

    <helpers>
        <myslideshow>
            <class>Displaze_MySlideshow_Helper</class>
        </myslideshow>
    </helpers>

    <!-- Global Blocks definition -->
    <blocks>
        <myslideshow>
            <class>Displaze_MySlideshow_Block</class>
        </myslideshow>
    </blocks>
   ...
3
  • the first option is the standard way, could you please post your block and config.xml so we can see if there is an issue with those. Commented Nov 8, 2013 at 13:18
  • check if the extension is compatible with your magento version. also see if all the files are properly placed in their location.
    – Kalpesh
    Commented Nov 8, 2013 at 13:33
  • @DavidManners done
    – i.amniels
    Commented Nov 8, 2013 at 14:18

2 Answers 2

1

This error happens when the template that is specified under template does not exist. Please double check that this template is there and that it can be found in you theme set-up.

To double check. I am running 1.7.0.2 and have downloaded this extension and this extension does not happen with the default set-up.

0

The template files were located on app/design/frontend/default/default/template instead of app/design/frontend/base/default/template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.