title: Use Custom Block in CMS static page
body: <p>I'm trying to call my block from magento cms static block, but it doesn't work.</p>
  
  <p>local/Mymodule/Test/etc/config.xml</p>
  
  <pre><code>&lt;config&gt;
      &lt;modules&gt;
          &lt;Mymodule_Test&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;/Mymodule_Test&gt;
      &lt;/modules&gt;
      &lt;global&gt;
          &lt;blocks&gt;
              &lt;test&gt;
                  &lt;class&gt;Mymodule_Test_Block&lt;/class&gt;
              &lt;/test&gt;
          &lt;/blocks&gt;
      &lt;/global&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>local/Mymodule/Test/Block/Testblock.php</p>
  
  <pre><code>class Mymodule_Test_Block_Testblock extends Mage_Core_Block_Template
  {
  
  }
  </code></pre>
  
  <p>In my static cms page i use</p>
  
  <pre><code>{{block type="test/testblock" template="page/test.phtml"}}
  </code></pre>
  
  <p>I'm assuming that the block template is placed correctly bcus when I call</p>
  
  <pre><code>{{block type="core/template" template="page/test.phtml"}}
  </code></pre>
  
  <p>this works without problem.</p>
  
  <p>error.log</p>
  
  <pre><code>2016-05-04T12:43:51+00:00 ERR (3): 
  exception 'Exception' with message 'Notice: Undefined variable: block  in C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Model\Email\Template\Filter.php on line 187' in C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\functions.php:245
  Stack trace:
  #0 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Model\Email\Template\Filter.php(187): mageCoreErrorHandler(8, 'Undefined varia...', 'C:\\xampp5-6-14\\...', 187, Array)
  #1 [internal function]: Mage_Core_Model_Email_Template_Filter-&gt;blockDirective(Array)
  #2 C:\xampp5-6-14\htdocs\project\lib\Varien\Filter\Template.php(163): call_user_func(Array, Array)
  #3 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Model\Email\Template\Filter.php(558): Varien_Filter_Template-&gt;filter('&lt;p&gt;{{block type...')
  #4 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Cms\Block\Page.php(101): Mage_Core_Model_Email_Template_Filter-&gt;filter('&lt;p&gt;{{block type...')
  #5 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Cms_Block_Page-&gt;_toHtml()
  #6 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(637): Mage_Core_Block_Abstract-&gt;toHtml()
  #7 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(577): Mage_Core_Block_Abstract-&gt;_getChildHtml('cms_page', true)
  #8 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Page\Block\Html\Wrapper.php(52): Mage_Core_Block_Abstract-&gt;getChildHtml('', true, true)
  #9 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Page_Block_Html_Wrapper-&gt;_toHtml()
  #10 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Text\List.php(43): Mage_Core_Block_Abstract-&gt;toHtml()
  #11 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Core_Block_Text_List-&gt;_toHtml()
  #12 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(637): Mage_Core_Block_Abstract-&gt;toHtml()
  #13 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(581): Mage_Core_Block_Abstract-&gt;_getChildHtml('content', true)
  #14 C:\xampp5-6-14\htdocs\project\app\design\frontend\mydesign\system\template\page\1column.phtml(55): Mage_Core_Block_Abstract-&gt;getChildHtml('content')
  #15 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Template.php(241): include('C:\\xampp5-6-14\\...')
  #16 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template-&gt;fetchView('frontend\\myde...')
  #17 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template-&gt;renderView()
  #18 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Block\Abstract.php(919): Mage_Core_Block_Template-&gt;_toHtml()
  #19 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Model\Layout.php(555): Mage_Core_Block_Abstract-&gt;toHtml()
  #20 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Controller\Varien\Action.php(390): Mage_Core_Model_Layout-&gt;getOutput()
  #21 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Cms\Helper\Page.php(137): Mage_Core_Controller_Varien_Action-&gt;renderLayout()
  #22 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Cms\Helper\Page.php(52): Mage_Cms_Helper_Page-&gt;_renderPage(Object(Mage_Cms_IndexController), 'home')
  #23 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Cms\controllers\IndexController.php(45): Mage_Cms_Helper_Page-&gt;renderPage(Object(Mage_Cms_IndexController), 'home')
  #24 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Controller\Varien\Action.php(418): Mage_Cms_IndexController-&gt;indexAction()
  #25 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action-&gt;dispatch('index')
  #26 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
  #27 C:\xampp5-6-14\htdocs\project\app\code\core\Mage\Core\Model\App.php(365): Mage_Core_Controller_Varien_Front-&gt;dispatch()
  #28 C:\xampp5-6-14\htdocs\project\app\Mage.php(684): Mage_Core_Model_App-&gt;run(Array)
  #29 C:\xampp5-6-14\htdocs\project\index.php(102): Mage::run('', 'store')
  #30 {main}
  </code></pre>
  
  <p>Any ides why is email template filter even being called ?</p>
  
  <p>This is for Magento Enterpise, but for some reason I can't add the tag :v</p>