文章内容页

2016-07-07 16:15 来源:www.chinab4c.com 作者:ecshop专家



请教高手,文章内容也如何删除左边的商品分类树,在后台无法操作,如果要修改article.dwt,该如何修改?

回答:
<div class="blank5"></div>

<!-- #EndLibraryItem -->
<!-- #BeginLibraryItem "/library/category_tree.lbi" -->

<div class="box">
<div class="box_1">
<div id="category_tree">
<!--{foreach from=$categories item=cat}-->
<dl>
<dt><a href="{$cat.url}">{$cat.name|escape:html}</a></dt>
<!--{foreach from=$cat.children item=child}-->
<dd><a href="{$child.url}">{$child.name|escape:html}</a></dd>
<!--{/foreach}-->
</dl>
<!--{/foreach}-->
</div>
</div>
</div>
<div class="blank5"></div>

<!-- #EndLibraryItem -->

删掉即可

以官方默认模板为例
修改article.dwt
  1. <!-- #BeginLibraryItem "/library/category_tree.lbi" -->

  2. <div class="box">
  3. <div class="box_1">
  4. <div id="category_tree">
  5. <!--{foreach from=$categories item=cat}-->
  6. <dl>
  7. <dt><a href="{$cat.url}">{$cat.name|escape:html}</a></dt>
  8. <!--{foreach from=$cat.children item=child}-->
  9. <dd><a href="{$child.url}">{$child.name|escape:html}</a></dd>
  10. <!--{/foreach}-->
  11. </dl>
  12. <!--{/foreach}-->
  13. </div>
  14. </div>
  15. </div>
  16. <div class="blank5"></div>

  17. <!-- #EndLibraryItem -->
复制代码
删除即可

搞定,多谢!

关注一下啊