2012-10-15 136 views
0

我在名爲「shopper」的模板中有一個塊。我想添加 「app \ design \ frontend \ default \ shopper \ template \ tag \ popular.phtml」中的塊。magento:如何將模板中的phtml塊添加到CMS頁面

我嘗試:

{{block type='core/template' area='frontend' template='tag/popular.phtml' }} 

塊沒有示出。也沒有PHP錯誤。

+0

你應該始終分配'id'屬性以及'type'和'template'。 – Kalpesh

回答

0

你嘗試

{{block type="core/template" template="tag/popular.phtml"}} 

如果還是不行,請確保您清除緩存(如果有的話),並仔細檢查「購物者」設置爲默認的主題。

更多@http://www.magentocommerce.com/boards/viewthread/221573/

如果「標籤/ popular.phtml」的內容是相同的或類似的基地/模板/標籤/ popular.phtml然後嘗試

{{block type="tag/popular" template="tag/popular.phtml"}} 
+0

「系統」配置>>設計>>主題>>默認「現在是'購物者'。仍然沒有影響。我在想這可能是阻止每一件事的主題? – alnassre

+0

您是否清除緩存? –

+0

popular.phtml的內容與/app/design/frontend/base/default/template/tag/popular.phtml相同嗎? –

相關問題