[Tips] 라이믹스/XE 회원 전체글 출력 삽질기록
2022.08.21 20:59
49
0
https://eond.com/446881

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

{@
$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

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

라이믹스는 이온디와 함께

newcomment
닫기

마이페이지

로그인을 해주세요