【问题标题】:Add static blocks into certain columns in magento将静态块添加到 magento 的某些列中
【发布时间】:2015-03-11 07:06:20
【问题描述】:

我有一个 3 列布局的网站。左侧是可以选择产品的菜单,中间是图像滑块。现在,我创建了另一个静态块,但我怎样才能将它添加到右列? 谢谢

【问题讨论】:

    标签: magento static block


    【解决方案1】:

    1] 在 page.xml 中添加以下代码。我想你里面有那个代码。

            <block type="core/text_list" name="right" as="right" translate="label">
                <label>Right Column</label>
            </block>
    

    2] 在您的 3columns.phtml 中,在您的左列之后添加以下代码

    <div class="col-right sidebar">
       <?php echo $this->getChildHtml('right') ?>
    </div>
    

    【讨论】:

    • 如果答案有效,那么将答案标记为正确或赞成投票将感谢贡献者。谢谢。
    • 由于我的声誉不佳,我无法投票 :( 抱歉
    • @GIMLI_2 - 你可以 accept the answer即使你不能投票。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多