[英]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.