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>
 ...
asked Nov 8, 2013 at 13:00
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. Commented Nov 8, 2013 at 13:33
  • @DavidManners done 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.

answered Nov 9, 2013 at 6:18
0

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

answered Dec 17, 2013 at 11:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.