1
定位塊我在Magento的 - 添加和使用local.xml中
app\design\frontend\base\default\template\dir\template.phtml
一個模板,像這樣
<div class='block block-list'>
<div class='block-title'><strong><span>Some Block</span></strong></div>
<div class='block-content'>
<?php echo "my content"; ?>
</div>
</div>
我通過添加以下代碼放置在目錄頁上的塊到local.xml文件。 但是,是否可以將塊定位到列的頂部?
<?xml version="1.0"?>
<layout version="0.1.0">
<catalog_category_default translate="label">
<reference name="right">
<block type="core/template"
name="somename"
template="dir/template.phtml" />
</reference>
</catalog_category_default>
</layout>
跟進https://stackoverflow.com/posts/15736207/edit
之前=添加' 「 - 」'的''節點。 –
pspahn
這個伎倆! –