썸씽모듈에서 회원 전체글 출력하기 삽질기..
{@
$cmt_cnt = 0; $doc_cnt = 0;
}
<!--@foreach($something_data as $no => $document)-->
<!--@if($document->doc_type=='doc')-->
{@
$doc_cnt++;
}
<!--@end-->
<!--@if($document->doc_type=='cmt')-->
{@
$cmt_cnt++;
}
<!--@end-->
<!--@end-->
게시물:{$doc_cnt}개 <br>
코멘트:{$cmt_cnt}개
{@
$oDocumentModel = &getModel('document');
$count_document = $oDocumentModel->getDocumentCountByMemberSrl($member_info->member_srl);
}
{$count_document}/
{getModel('document')->getDocumentCountByMemberSrl($member_info->member_srl)}
<hr>
{@
$search_obj = new stdClass();
//$search_obj->module_srl = $module_info->module_srl; // 현재 게시판 모듈번호로 지정
$search_obj->member_srl= $member_info->member_srl;
$output = executeQuery('document.getDocumentCount', $search_obj);
$count_document = $output->data->count;
}
{var_dump($output)}
<hr>
{@
//$module_info = $this->module_info;
$args = new stdClass();
$args->member_srl = $member_info->member_srl;
$oDocumentModel = getModel('document');
//$output = $oDocumentModel->getDocumentCountByMemberSrl($args->member_srl);
$output = executeQuery('document.getDocumentCountByMemberSrl', $args);
}
{var_dump($output)}
https://xe1.xpressengine.com/qna/22985602
찾음..ㅎ
참조 : https://xetown.com/topics/1583064
이런 식으로 꾸밀 수가 있네요.