<div class="my_articles module" cond="$is_logged">
<h3 class="title">My Articles</h3>
{@
$args->order_type = "asc";
$args->list_count = 5;
$args->member_srl = $logged_info->member_srl;
$oDocumentModel = &getModel('document');
$output = $oDocumentModel->getDocumentList($args);
if(!$li->my_article_cut) $li->my_article_cut = 17;
}
<!--@if($output->data)-->
<ul class="list_wrap">
<li loop="$output->data=>$key,$val"><a href="{getUrl('', 'mid', $val->get('module_srl'), 'document_srl', $val->get('document_srl'))}">{mb_substr($val->get('title')?$val->get('title'):$oDocument->get('title'),0,$li->my_article_cut, "UTF-8")}</a> <span class="pt_col list_cmt" cond="$val->getCommentCount()>0">{$val->getCommentCount()}</span></li>
</ul>
<!--@else-->
<p>나의 최근 글이 없습니다.</p>
<!--@end-->
</div>
위는 작성한글을 불러오는 소스고
응용하여
<div class="my_articles module" cond="$is_logged">
<h3 class="title">스크랩한 글</h3>
{@
$args->order_type = "asc";
$args->list_count = 5;
$args->member_srl = $logged_info->member_srl;
$oDocumentModel = &getModel('document');
$output = $oDocumentModel->getScrapDocumentList($args);
if(!$li->my_article_cut) $li->my_article_cut = 17;
}
<!--@if($output->data)-->
<ul class="list_wrap">
<li loop="$output->data=>$key,$val"><a href="{getUrl('', 'mid', $val->get('module_srl'),
'document_srl', $val->get('document_srl'))}">
{mb_substr($val->get('title')?$val->get('title'):$oDocument->get('title'),0,$li->my_article_cut, "UTF-8")}</a>
<span class="pt_col list_cmt" cond="$val->getCommentCount()>0">{$val->getCommentCount()}</span></li>
</ul>
<!--@else-->
<p>스크랩한 글이 없습니다.</p>
<!--@end-->
</div>
이렇게 수정하였는데 동작하지 않습니다..
스크랩한 글을 불러오려면 어떻게 수정해야할까요?