<!--@foreach($document->getComments() as $key => $val)-->
    <!--@if($val->getProfileImage())-->
    <img src="{$val->getProfileImage()}" alt="{$val->user_id}" />
    <!--@else-->기본이미지출력<!--@end-->
<!--@end-->


게시판 리스트에서 적당한 곳에 위 코드를 삽입하면 댓글 작성자 프로필 이미지가 출력됩니다.


참고

https://xetown.com/questions/1697402

https://opentutorials.org/module/3774/28024

https://xe1.xpressengine.com/tip/19190550

추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기
array(3) { [0]=> object(stdClass)#855 (3) { ["regdate"]=> int(0) ["unique_visitor"]=> int(3835410) ["pageview"]=> int(73016385) } [20230329]=> object(stdClass)#851 (3) { ["regdate"]=> int(20230329) ["unique_visitor"]=> int(678) ["pageview"]=> int(2397) } [20230330]=> object(stdClass)#858 (3) { ["regdate"]=> int(20230330) ["unique_visitor"]=> int(511) ["pageview"]=> int(2695) } }