這裏是我的結構: 在[TEMPLATE_NAME] /default/layout/page.xml我創造了新的塊:在[TEMPLATE_NAME] /default/template/1column.phtmlMagento的新塊
<block type="core/text_list" name="customblock" template="page/html/customblock.phtml" />
<?php echo $this->getChildHtml('customblock') ?>
並[TEMPLATE_NAME] /default/template/page/html/customblock.phtml是
<h1 style="bacground-color:yellow">Hello this is new reference</h1>
異常日誌是搶先Ÿ,我的新區塊沒有顯示,enybody知道爲什麼?
Tryed兩個,仍然一無所獲 – user2606353
,你能不能清除緩存?如果你想創建你的簡單模板嘗試http://www.expertwebadvisor.com/creating-and-displaying-a-static-block-in-magento/ – liyakat
我已禁用緩存 – user2606353