묻고답하기

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 남기남
제발염 탭형식 최근글위젯 질문 [2] 2010.03.30 by 제발염
제발염 탭게시판 도와주세요ㅜ file  
왓두유원트 분류 관리 탭을 여러개 못 만드나요? [1] 2010.03.22 by 린Lynn
꼬마철학자 최근글 탭형식 위젯 total tap 추가 문의  
또별 탭형식 최신게시물 메뉴간 왔다갔다 하기 문의  
노기욱 탭에 대응하는 mid 값 변수로 지정하는 방법 좀. file  
고순남 분류를 탭페이지 형식으로  
아이유홀릭 최근갤러리에서 웹진형이나 탭형처럼 이미지 뽑아내는방법 [2] 2010.02.22 by Wooam
행복한일상 인기글,최신댓글,최신글 탭 위젯 없나요? ㅜㅜ  
낭만사객 페이지 수정 - 내용 직접 추가 - HTML 탭에서는 템플릿 문이 안먹나요? [1] 2010.01.27 by 라르게덴
비밀얌 최근글 탭형식 위젯 할려고 하면 "요청하신 기능을 실행할 수 있는 권한이 없습니다" [1] 2010.01.26 by 백성찬
현규웅 염치없게 문의드립니다. 탭링크가 잘못걸리는것에 대하여 file  
이상수917 탭형식최근글 카테고리 [1] 2010.01.11 by 감로수
ttols 게시판 이미지파일 첨부시 탭최근글 오류  
vinasky 페이지 내에 탭형식 소메뉴 구현은 어떻게 하는지요?  
아모란 ''탭형 최근문서 출력'' 위젯 스킨에서 문의...  
병후니짱 탭메뉴 작동중 문의사항  
아모란 ''탭형 최근 문서'' 위젯 문의 드립니다. file  
김상권185 탭형 최근게시물 위젯을 사용중인데 이미지가 큰게 올라오면... [2] 2009.11.13 by ememo
최영석222 탭방식 최근글 게시판 이미지