묻고답하기

1.jpg

 

 나라디자인의 스킨입니다.

 여기에서 단편 게시판 / 환상회랑 작품 / 초청 단편 과 같이

 상단 탭에 지정되는 게시판의 mid 값을 변수로 지정하는 방법을 좀 알고 싶습니다.

 

 상단 탭의 경우

 _tab_top.html 인데요.

 

<ul class="ncwTabContainer ncwTabHr">
{@$i=0}
<!--@foreach($widget_info->tab as $module_srl => $tab)-->
    <li class="ncwTab <!--@if($i==0)-->active<!--@end-->">
    {@$b='short'}
    <button type="button" class="ncwTabButton" ondblclick="goURL('http://fangal.org/xe/{$b}')" onclick="content_widget_tab_show(jQuery(this),jQuery(this).parents('ul.ncwTabContainer').next('div.ncwListContainer'),{$i})"><span>{$tab->title}</span></button>
  <div class="ncwListContainer">
   {@$widget_info->content_items = $tab->content_items}
   <!--#include("_tab_none.html")-->
  </div>
 </li>
{@$i++}
<!--@end-->
</ul>

 

로 되어있는데요. 빨간색으로 칠해진 부분의 변수가 지금은 'short'으로 지정되어 있으나,

$b를 각 탭에 연동하는 mid 값으로 지정해주고 싶습니다.

 

한편, 최근 게시물 출력 부분 파일인 normal.html의 코드는 다음과 같습니다.

 

<!--// 테이블형 출력 -->
<!--@else-->
    <table class="ncwList" border="1" cellspacing="0">
        <tbody>
    {@$_idx=0}
    <!--@foreach($widget_info->content_items as $key => $item)-->
        <tr<!--@if($_idx >= $widget_info->list_count)--> style="display:none"<!--@end-->>
    <!--@foreach($widget_info->option_view_arr as $k => $v)-->
    <!--@if($v=='title')-->
        <td class="titleArea">

            <!--@if($widget_info->show_browser_title=='Y' && $item->getBrowserTitle())-->
       
                <a href="<domain">!--@if($item->contents_link)-->{$item->contents_link}<!--@else-->{getSiteUrl("$item->domain, ', 'mid', $item->get('mid'))}<!--@end-->" class="moduleTitle">{$item->getBrowserTitle()}</a>
            <!--@end-->
            <!--@if($widget_info->show_category=='Y' && $item->get('category_srl') )-->
                <a href="{getSiteUrl($item->domain,','mid',$item->get('mid'),'category',$item->get('+ '+ 'category_srl'))}" class="categoryTitle">{$item->getCategory()}</a>
            <!--@end-->
            <a href="{$item->getLink()}" class="documentTitle">{$item->getTitle($widget_info->subject_cut_size)}</a>

            <!--@if($widget_info->show_comment_count=='Y' && $item->getCommentCount())-->
                <sup class="replyNum" title="Replies"><a href="{$item->getLink()}#comment">{$item->getCommentCount()}</a></sup>
            <!--@end-->

            <!--@if($widget_info->show_trackback_count=='Y' && $item->getTrackbackCount())-->
                <sup class="trackbackNum" title="Trackbacks"><a href="{$item->getLink()}#trackback">{$item->getTrackbackCount()}</a></sup>
            <!--@end-->

            <!--@if($widget_info->show_icon=='Y')-->
                <span class="icon">{$item->printExtraImages()}</span>
            <!--@end-->
        </td>
    <!--@else if($v=='nickname')-->
        <td><span class="author">{$item->getNickName()}</span></td>
    <!--@else if($v=='regdate')-->
        <td class="time"><span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour"></span></td>
    <!--@end-->
    <!--@end-->
        </tr>
    {@$_idx++}
    <!--@end-->
        </tbody>
    </table>
    <!--@if($widget_info->page_count > 1 && $widget_info->list_count<$_idx)-->
    <ul class="ncwListPagination">
        <li><button type="button" class="prev" title="{$lang->cmd_prev}" onclick="content_widget_prev(jQuery(this).parents('ul.ncwListPagination').prev('table.ncwList'),{$widget_info->list_count})"><span>{$lang->cmd_prev}</span></button></li>
        <li><button type="button" class="next" title="{$lang->cmd_next}" onclick="content_widget_next(jQuery(this).parents('ul.ncwListPagination').prev('table.ncwList'),{$widget_info->list_count})"><span>{$lang->cmd_next}</span></button></li>
    </ul>
    <!--@end-->
<!--@end-->
</div>

 

 제가 문외한이라 잘 모르겠으나 mid를 받아내는 방법은 get('+ 'mid'+ ') 정도가 되는 것 같은데,

 이게 normal.html에서만 변수로 지정이 되고, _tab_top.html 에서는 되질 않더라고요.

 어떻게 손을 대야 _tab_top.html에서 mid 값을 변수로 지정이 가능할지 답변을 좀 부탁드리겠습니다.

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
디하르트 apm + windows server2008에서 다운로드 속도가 너무 안나와요. [2] 2010.02.27 by 아련한추억
choi924 이모티콘 질문입니다. [1] 2010.02.27 by yohan666
당근28호 언어가 영어로만 나와요~ [1] 2010.02.27 by yohan666
꼬야꼬야제로보드달꼬야 가가채팅을 설치했는데 [1] 2010.02.27 by yohan666
_DeTecTiVe_ 데이터 베이스 비밀번호 변경후 접속 불가문제.. [1] 2010.02.27 by yohan666
꼬야꼬야제로보드달꼬야 위젯 사이즈 지정..  
미친 게시판모듈 ''스킨관리''설젱에 체크박스 추가  
임유진937 색바꾸는법좀요 ㅠㅠ file  
신난굴뚝 스킨 관련 질문요!!!  
이창호143 아이프레임을 사용해서 최신글을 끌어왔는데요 링크를 top으로 돌리는 방법있나요?  
가너외라 댓글 표시 문제 [1] file 2010.02.26 by chohee
바다잎새 phpmyadmin 잘못 건드리고 나니 관리창 접속이 안됩니다. 도와 주세요.  
복숭아캔 이미지 여러개를 올리는데 버튼으로 앞이미지, 뒷이미지를 볼수 있게끔..  
PLASTIC SYNDROME 파이어폭스에서 로그인 창과 플래시 겹침문제 file  
루빈이 게시판이 안나오네요~  
cranky02 썸네일 이미지 2개 생성  
최재호빵 로그인 스킨 웹미니 글 짤림현상 file  
행복한일상 코멘트,댓글,리플 일정 갯수 이상 자동 페이지 기능추가는 어렵나요? [2] 2010.02.26 by SMaker
빈들에 cafexe 메뉴 추가가 안되요 file  
마쑤다 첨부파일을 그대로 표시하려면 [1] 2010.02.26 by chohee