{
return array(
‘index’ => SITE_URL . ‘/index.php’,
‘gcategory’ => SITE_URL . ‘/index.php?app=category’,
‘article’ => SITE_URL . ‘/index.php?act=index&app=article’,
);
}
第二步:
修改 wwwrootlanguagessc-utf-8admintemplate.lang.php
<?php
return array(
‘no_such_page’ => ‘没有指定页面!’,
‘save_successed’ => ‘保存页面成功!您可以点击查看商城首页查看效果’,
‘no_such_widget’ => ‘没有指定的挂件’,
‘click_to_add’ => ‘点击添加该挂件到页面’,
‘widget_list’ => ‘挂件列表’,
‘hidden’ => ‘隐藏’,
‘save’ => ‘保存修改’,
‘end_edit’ => ‘退出编辑’,
‘mall_index’ => ‘商城首页’,
‘template_setting’ => ‘模板编辑’,
‘index’ => ‘首页’,
‘recommend_new’ => ‘最新商品’,
‘gcategory’ => ‘商品分类页’,
‘article’ => ‘文章’, //新加的页面名字
);
?>
完成以上步骤后在后台的“模板编辑”里会发现多了一个“文章”的可编辑模板,如图:
但点击编辑后会发现根本就没有可以放置挂件的区域,这时候还需要做第三步
第三步
修改 wwwrootthemesmalldefaultarticle.index.html
add something like this:
<div area=”left” widget_type=”area”>
<!–{widgets page=brand area=left}–>
</div>
before:
{include file=page.bottom.html}
</div>
</div>
<div area=”article” widget_type=”area”>
<!–{widgets page=article area=article}–>
</div>
{include file=footer.html}
刷新模板编辑页面,插入插件,OK!
具体布局自己做相应的调整。