質問 > フロント機能 > カテゴリーの階層を全部出しから親カテゴリのみに戻したい |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
kirat |
投稿日時: 2013/2/6 20:40
対応状況: −−−
|
新米 登録日: 2012/7/5 居住地: 関東 投稿: 7 |
カテゴリーの階層を全部出しから親カテゴリのみに戻したい 初歩的な内容の質問でお恥ずかしいですが、どなたかご教授願います。
カテゴリーの階層を現在、子カテゴリーまで表示させられる状態なのですが、子カテゴリーの分類が多くなってしまった為、デフォルト時の親カテゴリーのみの状態に戻したいのですが、階層を折りたたむ部分(と思われる)ところをいじっても、戻らなく、どこを手入れしてよいかわかりません。 商品登録数が0でも表示できるようになっている為、非常に長く、見た目がしつこい状態です。 (※商品登録数は表示されないようになっています。) デフォルトを参考にしたら良いかと思い、デフォルトのコピペを試しましたが、戻したくない部分まで戻ってしまう為に困っています。 当方が試した階層の調整は category.tpl の、 <!--{if $arrTree[cnt].display == 1|| $arrTre[cnt].level <=2}--> の調整です。 現在の状況を記載します。 <!--{* * This file is part of EC-CUBE * * Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved. * * http://www.lockon.co.jp/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *}--> <script type="text/javascript">//<![CDATA[ $(function(){ $('#category_area li.level1:last').css('border-bottom', 'none'); }); //]]> </script> <div class="bloc_outer"> <div id="category_area"> <div class="bloc_body"> <h2><span class="square">■</span>商品カテゴリー</h2> <!--{strip}--> <ul id="categorytree"> <!--{assign var=preLev value=1}--> <!--{assign var=firstdone value=0}--> <!--{section name=cnt loop=$arrTree}--> <!--{* 表示フラグがTRUEなら表示 *}--> <!--{if $arrTree[cnt].display == 1|| $arrTre[cnt].level <=2}--> <!--{assign var=level value=`$arrTree[cnt].level`}--> <!--{assign var=levdiff value=`$level-$preLev`}--> <!--{if $levdiff > 0}--> <ul> <!--{elseif $levdiff == 0 && $firstdone == 1}--> </li> <!--{elseif $levdiff < 0}--> <!--{section name=d loop=`$levdiff*-1`}--> </li> </ul> <!--{/section}--> </li> <!--{/if}--> <li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id)}--> onmark<!--{/if}-->"> <p> <a href="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id)}--> class="onlink"<!--{/if}-->><!--{$arrTree[cnt].category_name|h}--></a> </p> <!--{if $firstdone == 0}--><!--{assign var=firstdone value=1}--><!--{/if}--> <!--{assign var=preLev value=`$level`}--> <!--{/if}--> <!--{* セクションの最後に閉じタグを追加 *}--> <!--{if $smarty.section.cnt.last}--> <!--{if $preLev-1 > 0}--> <!--{section name=d loop=`$preLev-1`}--> </li> </ul> <!--{/section}--> </li> <!--{else}--> </li> <!--{/if}--> <!--{/if}--> <!--{/section}--> </ul> <!--{/strip}--> </div> </div> </div> 何卒宜しくお願い致します。 |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» カテゴリーの階層を全部出しから親カテゴリのみに戻したい | kirat | 2013/2/6 20:40 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | dkazuto | 2013/2/6 22:04 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | kirat | 2013/2/6 23:22 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | dkazuto | 2013/2/7 9:23 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | kirat | 2013/2/9 0:31 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | dkazuto | 2013/2/12 9:46 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | kirat | 2013/2/19 16:49 |
Re: カテゴリーの階層を全部出しから親カテゴリのみに戻したい | kirat | 2013/2/20 21:14 |