local.xml内のヘッダーに新しいカートブロックを追加しようとしていますこれは私が持っているものです
<default>
<reference name="header">
<block type="checkout/cart_sidebar" name="cart_topbar" as="topCart" template="checkout/cart/top-cart.phtml"/>
</reference>
</default>
次に、ヘッダーでそれを呼び出しますが、<?php echo $this->getChildHtml('topCart')?>
何も表示されません。
タイプをに変更しようとするとtype="core/template"
、テンプレートにコンテンツが表示されます。checkout/cart_sidebar
だから、これは私がタイプに固有の何かが欠けていると思うように私を導きますか?
top-cart.phtml
simpleファイルには、その中のすべてを削除するための1行のテキスト行が含まれています。