<!-- 코멘트 리스트 시작 -->
<!--@if($module_info->list_replyContent!='N')-->
<!--@if(!($oDocument->isExists() && $grant->view && $module_info->cmtlist_at_boardlist == 'nolist'))-->
<!--@if($document->getCommentCount())-->
<!--@foreach($document->getComments() as $key => $val)-->
<a href="{getUrl('document_srl',$document->document_srl, 'comment_srl', $val->comment_srl)}#comment_{$val->comment_srl}" title="댓글">
<!--@if(!$module_info->subject_cut_size) -->
{cut_str(strip_tags($val->content),20,'...')}
<!--@else-->
{cut_str(strip_tags($val->content),20,'...')}
<!--@end-->
</a>
<!--@end-->
<!--@end-->
<!--@end-->
<!--@end-->
<!-- 코멘트 리스트 끝 -->

 

안녕하세요

현재 위의 소스로 게시판 목록화면에서 해당 글에 대해서 댓글이 작성된 코멘트 내용을 출력해오고 있는데요

여기에 한가지 더해서 해당 글에 댓글 작성자도 함께 출력하려면 어떻게 해야는지 궁금해서 문의드려요

 

게시판 목록에서 댓글 작성자도 함께 불러오는 소스 코드를 알려주실수 있을까요?

 

행복한 하루 되세요!

  • profile
    <!--@foreach($document->getComments() as $key => $val)-->
    이친구 시작부터 끝나는 부분까지

    $val->get('user_id')
    를 하면 가져오지 않나요?
  • profile profile
    감사합니다
    적용해보니 바로 되네요!!