묻고답하기

메인화면 최근게시물 위젯에 확장변수를 표시하고 싶습니다.

그동안 Tip을 보고 여러가지로 시도해 보았으나 나타나지 않았으며 지식인에도 질문해 봐도 답변이 없어 다시 질문을 드립니다.

제가 참고한 XE공식홈페이지의 Tip입니다만 모두 실패 하였습니다.

jsuimage님의
모든 원하는 확장변수를 선택해서 최근게시물 위젯에 나타내기 간단팁
http://www.xpressengine.com/18381084

 

bibi님의
확장변수를 위젯에서 출력하기
http://www.xpressengine.com/18158657


저의 게시판의 확장변수 설정입니다.

Capture2.jpg

메인화면의 최근게시물 위젯입니다.

Capture1.jpg
Date라는 곳에 확장변수인 shotdate가 표시되게 하고 싶습니다.


콘텐츠위젯 스킨은 나라디자인 스킨이며 테이블 형식으로 출력하고 있습니다.
{$oDocument->getExtraValue(1)}
{$oDocument->extra_value_1}
{$Document->getExtraValue(1)}
{$Document->extra_value_1}
{$item->getExtraValue(1)}
등 다 사용해 봤으나 화면에 변수의 내용이 나타나지 않습니다.

 

아래 10번째줄에 표시하는 곳이 있습니다.

어떻게 수정해야 할까요?

<td class="time">Date<span class="date"><strong>{$item->getExtraValue(1)}</strong></span></td>

 

 <!--// 테이블형 출력 -->
<!--@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=='shotdate')-->
        <td class="time">Date<span class="date"><strong>{$item->getExtraValue(1)}</strong></span></td>
    <!--@else 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("http://www.xpressengine.com/$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=='username')-->
        <td><span class="author">{$item->getUserName()}</span></td>
    <!--@else if($v=='regdate')-->
        <td class="time"><span class="date">{$item->getRegdate("Y-m-d")}</span> <span class="hour">{$item->getRegdate("H:i")}</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>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
송군223 글 작성시 글씨색상이 하얗게 ㄱ- [1] 2008.10.24 by 느까끼
\제로보드/ 그누보드처럼 메인배너 하단배너 를 넣고싶은데 어떻게 넣는지... [1] 2008.10.24 by 느까끼
슈크림 청주!파비뇽! [1] 2008.10.24 by 이상빈
ddddffdfd 검색에선 외부 이미지가 보이는데, 홈페이지 위젯에선 보이질 않아요 [2] file 2008.10.24 by daniel28
\제로보드/ 로그인 안한상태에서 로그인 폼과 배너 사이의 간격이 남아돕니다,.. [2] file 2008.10.24 by \제로보드/
Overeasy 제가 제작한 모듈에만 회원 가입 페이지로 안넘어가져요... [1] 2008.10.24 by 느까끼
김현우683 웹페이지 운영중인 서버에 설치할려고 하는데요.... [2] 2008.10.24 by 느까끼
Gnee 게시판 제목,설명을 적는 부분의 디자인을 변경하려고 합니다. [1] 2008.10.24 by Gnee
zerozerozero 작성한 글의 날짜가 안나오게 하고 싶습니다~ [2] file 2008.10.24 by zerozerozero
이용자 게시글 들여쓰기는 원래 안되는건가요? [3] 2008.10.24 by 백성찬
zerozerozero 댓글과 아이콘 삭제 질문입니다~ [1] file 2008.10.24 by 비나무
프리더스 1.06 업데이트 후 모든링크가 안열립니다 [2] 2008.10.24 by 프리더스
박성훈 2차메뉴 없애는 것좀 도와주세요 ㅠ [1] file 2008.10.24 by 느까끼
PinkWink 글쓰기에서 엔터키를 치면... [1] 2008.10.24 by PinkWink
울보왕자 자료실 게시판 어디에 없습니까.  
박성준976 메뉴에 하위메뉴추가가 안됩니다 [3] 2008.10.24 by 느까끼
초보 게시글 조회수별 랭킹은 어디에.. [1] 2008.10.24 by 백성찬
박장섭 웹페이지 로딩시간이 길어지는 증상... [1] 2008.10.24 by 백성찬
일등고구마 mp3화일 첨부하고 본문 삽입하면... [1] 2008.10.24 by e~세상쉼터
박성준976 메인 로그인페이지에 플래시설치 여부체크 [4] 2008.10.24 by e~세상쉼터