我的一个布局文件中有此部分:
<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块?
谢谢!
答案 0 :(得分:0)
将其更改为:
<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'); ?>