0
我在一个magento网站上工作,我想在右侧栏中添加热门标签块。 我已经在tag.xml中添加了这段代码显示magento侧栏中的热门标签
<default>
<!-- Mage_Tag -->
<reference name="right">
<block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
</reference>
</default>
但它不工作。 我在设计中尝试这个代码/ frontedn /默认/主题/模板/页/ 2columns-right.phtml
<?php echo $this->getLayout()->createBlock('tag/popular')->setTemplate('tag/popular.phtml')->toHtml(); ?>
但它也不能正常工作。 我错过了什么? 有没有办法在我的主题中的右侧栏中添加热门标签块?