In this article we will add new, two columns, text block.
1. Create a thumbnail of the block.
Create some thumbnail image like bellow
Thumbnail file should be uploaded to this directory:
2. Create the block template (.phtml) file
Please create new file called grid2.phtml here:
The content of the file grid2.phtml you can download here, and copy it to the file.
3. Layout updates
The next thing what you need to do is to update the layout files. Just copy and paste this code. Important parts are in bold.
<block type="mtemail/email_block" name="block" template="block.phtml" >
<block type="mtemail/email_block_template" name="grid2" template="block/grid2.phtml"/>
in these two files files:
after this line:
4. Add this block to the email template
All mt emails templates are under this directory:
If you want to add the block to each template you have to add the code, which are bellow, to each template file. In this example I will show how to add it to the custom.html template. The process is the same with other files.
The code of the block:
"layout handle=\"mt_email_block_grid2\" theme=\"default\" template_id=$this.id block_id=0 block_name=\"mt_email_block_grid2\" ":"mt_email_block_grid2", "mt/email/theme/default/block/images/grid2.png":"mt_email_block_grid2_image",
You have to add this code after this
That's all! Now you can do some tests.