[英]magento: How to add a phtml block from the template to a CMS page
我在名为“购物者”的模板中有一个区块。 我想添加一个位于“ app \\ design \\ frontend \\ default \\ shopper \\ template \\ tag \\ popular.phtml”中的块。
我试过了:
{{block type='core/template' area='frontend' template='tag/popular.phtml' }}
该块未显示。 也没有PHP错误。
你试过了吗
{{block type="core/template" template="tag/popular.phtml"}}
如果这不起作用,请确保清除缓存(如果有),然后仔细检查“购物者”是否设置为默认主题。
阅读更多@ http://www.magentocommerce.com/boards/viewthread/221573/
如果'tag / popular.phtml'的内容与base / template / tag / popular.phtml相同或相似,请尝试
{{block type="tag/popular" template="tag/popular.phtml"}}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.