I created a new template file, where I placed some custom code, that I want to load inside a page.
I created a CMS page where I load the template file by using:
{{block type="core/template" template="/aw_blog/share.phtml"}}
I need to use the same php code as the default template file, so I need to define the template by: <?php $post = $this->getPost();?>
The default template file is defined inside the XML file like:
<reference name="content">
<block type="blog/post" name="post" template="aw_blog/post.phtml">
<block type="blog/product_toolbar" name="aw_blog_list_toolbar" template="aw_blog/toolbar.phtml">
<block type="blog/html_pager" name="product_list_toolbar_pager"/>
</block>
</block>
</reference>
So I edit the XMl file:
<reference name="content">
<block type="blog/post" name="post" template="aw_blog/post.phtml">
<block type="blog/product_toolbar" name="aw_blog_list_toolbar" template="aw_blog/toolbar.phtml">
<block type="blog/html_pager" name="product_list_toolbar_pager"/>
</block>
</block>
<block type="blog/post" name="post" template="aw_blog/share.phtml">
<block type="blog/product_toolbar" name="aw_blog_list_toolbar" template="aw_blog/toolbar.phtml">
<block type="blog/html_pager" name="product_list_toolbar_pager"/>
</block>
</block>
</reference>
But that does not work, because that breaks down the page. It does not load the default content anymore.
What am I missing?