私のサイトの各ページコンテンツの上部にカルーセルと2つのバナーを表示します。 page.xmlのフッターブロックからカスタム参照を作成しました。 だから、これはどのように見えるかです:Magentoレイアウトでスタティックブロックの新しいリファレンスを提供する
<block type="page/html" name="topcontent" as="topcontent" template="page/html/topcontent.phtml">
<block type="page/html_wrapper" name="topcontent.container" as="topcontentContainer" translate="label">
<label>Page Top Content</label>
<action method="setElementClass"><value>topcontent-container</value></action>
</block>
<block type="core/template" name="topcontent.book.carousel" as="topcontentCarousel" template="callouts/book-carousel.phtml"/>
<block type="core/text_list" name="topcontent.left" as="topcontentLeft" />
<block type="core/text_list" name="topcontent.right" as="topcontentRight" />
</block>
それから私は私が私のカルーセルが正しく表示されていますが、私はブロックを置くしようとすると、
<div class="topcontent-container">
<div class="topcontent">
<?php echo $this->getChildHtml('topcontentContainer') ?>
<?php echo $this->getChildHtml('topcontentCarousel') ?>
<?php echo $this->getChildHtml('topcontentLeft') ?>
<?php echo $this->getChildHtml('topcontentRight') ?>
</div>
</div>
を置くtopcontent.phtmlファイルを作成上部コンテンツ左または上部コンテンツ右、それはすべて広告で表示されません。 私はブロック型のパラメータに何か間違っていると思いますが、私は何を理解できないのですか?おかげさまで
いいえ、必要なものを置くには地域が必要です。管理者が静的ブロックを公開するだけのバナーを置くことができるように、参照を作成したいと考えています。 – pasine
答えが更新されました –
私は同じ解決策がいくつかのモジュールのコードを見ていることを発見しました。ご協力いただきありがとうございます! – pasine