10

我想在默认页面中添加“左栏”(类别等)。我看到左侧面板存在于产品页面上,但在默认页面中缺失。请看屏幕截图。请建议。

4

1 回答 1

7

1 - 在模板文件夹中打开所需的页面,例如内容/信息页面:

catalog\view\theme\default\template\information.tpl

2 - 在所需位置添加此行:

<?php echo $column_left; ?>

如果失败,打开该代码的相关MVC控制器模型,例如:

catalog\controller\information.php

寻找$this->children = array(

确保数组包含左侧面板,例如:

$this->children = array(
    'common/column_left',
    'common/column_right',
    'common/content_top',
    'common/content_bottom',
    'common/footer',
    'common/header'
);

我希望您的意思是默认情况下的信息等,也就是主页,已经有这个:(\catalog\view\theme\default\template\common\home.tpl

<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
<h1 style="display: none;"><?php echo $heading_title; ?></h1>
<?php echo $content_bottom; ?></div>
<?php echo $footer; ?>
于 2012-09-01T03:28:27.780 回答