Magento的 - 添加到布局
问题描述:
我有这部分的我的布局文件中的一个:Magento的 - 添加到布局
<blog_post_view>
<reference name="content">
<block type="blog/post" name="post" template="aw_blog/post.phtml" />
<block type="socialbookmarking/bookmarks" name="bookmarks" template="bookmarks/bookmarks.phtml"/>
</reference>
</blog_post_view>
这第一块显示柱和第二块显示了一些社会书签的图标。问题是显示帖子的部分还显示'添加评论'部分。我想在帖子和评论之间添加社交图标。
我该怎么做? IE浏览器。在Post块的中间添加Social块?
谢谢!
答
将其更改为:
<blog_post_view>
<reference name="content">
<block type="blog/post" name="post" template="aw_blog/post.phtml">
<block type="socialbookmarking/bookmarks" name="bookmarks" template="bookmarks/bookmarks.phtml"/>
</block>
</reference>
</blog_post_view>
然后文章范本(aw_blog/post.phtml)把下面的你想要的书签,东西里面出现:
<?php echo $this->getChildHtml('bookmarks'); ?>