I try to display a custom block in email template and pass the order object. I tried
{{block type='module/blockname' area='frontend' order=$order template='template/module.phtml'}}
Block is like:
Namespace_Module_Block_Blockname extends Mage_Core_Block_Template
The module.phtml exists and using it in another phtml with
Mage::app()->getLayout()->createBlock("module/blockname");
works fine. But in email template the block won't show up. Do i miss some configuration in layout.xml? I tried so many things to get this working, perhaps someone can give me a hint how to manage this.
I also tried with layout handle:
<some_handle>
<block type="module/blockname" name="blockname" template="namespace/template.phtml"></block>
</some_handle>
and call with:
{{layout area="frontend" handle="some_handle" order=$order}}