묻고답하기

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 남기남
제로사랑 탭 형태 위젯에 새로운 게시물 등록 시  
곰팡이케이크 탭형태 최근문서 출력 질문  
Chris Cha 갑자기 기본컨텐트 탭형식위젯에서 마우스오버가 안되요 ㅜㅜ [1] 2011.04.06 by 카르마
Huckleberry Finn 탭 형태 최근 문서 출력 [2] 2011.04.15 by 오르막
Huckleberry Finn 탭 형태 최근 문서 출력 [1] 2011.04.20 by 레디오빠
마이콘 콘텐츠 위젯 탭전환 안됨 [1] 2011.04.20 by 카르마
싸이콜로지 content 위젯 계열 탭형식 출력이 안되는데 좀 도와주세요 [1] 2011.05.03 by 송동우
kissuri 최신글,최근댓글이 탭으로 한 위젯에서 열리는 위젯 없을까요? [1] 2011.05.03 by 송동우
navyFlElD 탭형 최근글 위젯 문제!! 제발고수님들 답변해주세요 [1] file 2011.05.09 by 송동우
navyFlElD 다시질문 탭형 최근글 위젯 문제!! 제발고수님들 답변해주세요 file  
navyFlElD 탭형 최근글 위젯 문제!! [1] 2011.05.11 by ForHanbi
★너부리 게시글 탭에 내용을 페이지로 쓰고 싶은대 가능하나요??  
윤국근 아래의 탭형식 최근글 위젯 관련 질문의 연장입니다... [1] 2011.06.04 by 송동우
이기만224 content 위젯 중 탭매뉴 문제  
이기만224 content 위젯 중 탭매뉴 문제 [1] 2011.06.26 by 송동우
이기만224 content 위젯 탭매뉴 문제입니다. [2] 2011.06.27 by 송동우
달리다굼 탭 메뉴의 업데이트에 관하여..  
아냐저자랴져여 탭형태 최근 문서 출력 ver 0.1 에서 파일 아이콘 지우는 법..  
유천us 자바스크립터를 클롬이나 갤럭시탭으로 나오게 하는 방법 없을까요?  
준돌이 스케치북5 게시판 분류탭 도망 현상...