측면메뉴 목록에서 3차 메뉴 출력 안 되는 현상 관련
Web Study/킴스큐 Rb 2014. 9. 17. 17:48 |1. 증상
게시판의 소속 메뉴를 3차 메뉴로 정했는데 측면 메뉴에서 상위 소속 메뉴인 2차 메뉴만 출력됨.
2. 해결책
- http://www.kimsq.co.kr/r/crepublic/11251
아래와 같이 빨간색 부분 추가해줌
<!-- 왼쪽메뉴 -->
<ul class="snb">
<?php include __KIMS_CONTAINER_HEAD__?>
<?php $_MENUS2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_CA[0].' and hidden=0 and depth=2 order by gid asc','*')?>
<?php while($_M2=db_fetch_array($_MENUS2)):?>
<li<?php if($_M2['id']==$_CA[1]):$g['nowSMemnu']=$_M2['uid']?> class="open"<?php endif?>><a href="<?php echo RW('c='.$_CA[0].'/'.$_M2['id'])?>" target="<?php echo $_M2['target']?>"<?php if($_M2['id']==$_CA[1]):?> class="on"<?php endif?>><?php echo $_M2['name']?></a>
<?php if(($_HM['uid']==$_M2['uid']||$_HM['parent']==$_M2['uid']||$_M2['id']==$_CA[1])&&$_M2['isson']):?>
<ul class="snb">
<?php include __KIMS_CONTAINER_HEAD__?>
<?php $_MENUS2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_CA[0].' and hidden=0 and depth=2 order by gid asc','*')?>
<?php while($_M2=db_fetch_array($_MENUS2)):?>
<li<?php if($_M2['id']==$_CA[1]):$g['nowSMemnu']=$_M2['uid']?> class="open"<?php endif?>><a href="<?php echo RW('c='.$_CA[0].'/'.$_M2['id'])?>" target="<?php echo $_M2['target']?>"<?php if($_M2['id']==$_CA[1]):?> class="on"<?php endif?>><?php echo $_M2['name']?></a>
<?php if(($_HM['uid']==$_M2['uid']||$_HM['parent']==$_M2['uid']||$_M2['id']==$_CA[1])&&$_M2['isson']):?>
<ul class="submenu">
<?php $_MENUS3=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M2['uid'].' and hidden=0 and depth=3 order by gid asc','*')?>
<?php while($_M3=db_fetch_array($_MENUS3)):?>
<li><a href="<?php echo RW('c='.$_CA[0].'/'.$_CA[1].'/'.$_M3['id'])?>" target="<?php echo $_M3['target']?>"<?php if($_M3['uid']==$_HM['uid']||$_M3['id']==$_CA[2]):?> class="on"<?php endif?>><?php echo $_M3['name']?></a></li>
<?php $_MENUS4=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M3['uid'].' and hidden=0 and depth=4 order by gid asc','*')?>
<?php while($_M4=db_fetch_array($_MENUS4)):?>
<a href="<?php echo RW('c='.$_CA[0].'/'.$_CA[1].'/'.$_M3['id'].'/'.$_M4['id'])?>" target="<?php echo $_M4['target']?>"<?php if($_M4['uid']==$_HM['uid']):?> class="on"<?php endif?>><?php echo $_M4['name']?></a>
<?php endwhile?><?php endwhile?>
</ul>
<?php endif?>
</li>
<?php endwhile?>
</ul>
<?php $_MENUS3=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M2['uid'].' and hidden=0 and depth=3 order by gid asc','*')?>
<?php while($_M3=db_fetch_array($_MENUS3)):?>
<li><a href="<?php echo RW('c='.$_CA[0].'/'.$_CA[1].'/'.$_M3['id'])?>" target="<?php echo $_M3['target']?>"<?php if($_M3['uid']==$_HM['uid']||$_M3['id']==$_CA[2]):?> class="on"<?php endif?>><?php echo $_M3['name']?></a></li>
<?php $_MENUS4=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M3['uid'].' and hidden=0 and depth=4 order by gid asc','*')?>
<?php while($_M4=db_fetch_array($_MENUS4)):?>
<a href="<?php echo RW('c='.$_CA[0].'/'.$_CA[1].'/'.$_M3['id'].'/'.$_M4['id'])?>" target="<?php echo $_M4['target']?>"<?php if($_M4['uid']==$_HM['uid']):?> class="on"<?php endif?>><?php echo $_M4['name']?></a>
<?php endwhile?><?php endwhile?>
</ul>
<?php endif?>
</li>
<?php endwhile?>
</ul>
'Web Study > 킴스큐 Rb' 카테고리의 다른 글
상단 어드민 바를 최고관리자에게만 출력하게 하기 (0) | 2014.09.23 |
---|---|
게시판 모듈 이외의 메뉴/페이지에서 SEO가 출력안 되는 버그(?) 수정 (0) | 2014.09.15 |
[버그?]동시에 게시글을 여러 개 열어놨을 때 댓글을 달면 엄한 게시글에 댓글이 달리는 현상 (0) | 2014.08.13 |
소셜 로그인 모듈에서 페이스북 로그인이 갑자기 안 되는 문제 (0) | 2014.08.07 |
MAMP 에서 킴스큐 Rb 설치 참고 (0) | 2013.02.01 |