I am using extension for Daily deals. It's displaying active deals in the sidebar.

But i have to display this in the Home page so i am adding following code in the editor of Home page.

{{block class="dailydeal/sidebar_activedeal" template="mw_dailydeal/sidebar/activedeal.phtml"}}

but nothing is displaying on the front side.

When i am using another test file it's displaying output.

{{block class="core/template" template=mw_dailydeal/sidebar/test.phtml"}}

in layout file it's as following:

<reference name="left">
        <block type="dailydeal/sidebar_todaydeal" name="todaydeal_left" before="-">
            <action method="setTemplate">
                <template helper="dailydeal/sidebar/displayTodaydealLeft"/>
        <block type="dailydeal/sidebar_activedeal" name="activedeal_left" after="todaydeal_left">
            <action method="setTemplate">
                <template helper="dailydeal/sidebar/displayActivedealLeft"/>
        <block type="dailydeal/sidebar_calendar" name="calendar_left" after="activedeal_left">
            <action method="setTemplate">
                <template helper="dailydeal/sidebar/displayCalendarLeft"/>

In block file as following :

class MW_Dailydeal_Block_Sidebar_Activedeal extends Mage_Core_Block_Template{

Please help me to solve this.


You have to add your block dailydeal/sidebar_activedeal to whitelist.

In admin go to System->Permissions->Blocks. Here add your block with status allowed.

  • Yes i have added but still not working. – Magecode Nov 25 '17 at 8:45
  • 1
    you are missing starting quote (") in template=mw_dailydeal/sidebar/activedeal.phtml" – Piyush Nov 25 '17 at 8:47
  • No it's ok in magento i have just missed in question. – Magecode Nov 25 '17 at 8:49
  • i have to change anything else in {{block class="dailydeal/sidebar_activedeal" template="mw_dailydeal/sidebar/activedeal.phtml"}} – Magecode Nov 25 '17 at 8:50
  • 1
    try changing class to type – Piyush Nov 25 '17 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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