CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

홈페이지 제작팁

썸씽모듈에서 회원 전체글 출력하기 삽질기..

{@
$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://xetown.com/questions/1347611
https://xetown.com/questions/1386519
https://xetown.com/tips/1386849

https://xe1.xpressengine.com/qna/22985602
찾음..ㅎ


참조 : https://xetown.com/topics/1583064

이런 식으로 꾸밀 수가 있네요.

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기