라이믹스 2.x 통합게시판 이용 시 게시판 제목을 표시하려고 합니다.
CMS/프레임워크 | Rhymix 2.0 |
---|---|
개발 언어 | PHP 7.2 |
라이믹스게시판 관리 > 추가 설정 > 통합 게시판 기능을 이용중입니다.
통합 게시판 목록에서 현재는 게시글의 제목만 가져오는데요. 제목 앞에 [게시판제목]이 따로 표기가 되게끔 하려고 합니다.
검색 중에 아래 질문글에서 답변을 찾았는데요.
https://xetown.com/questions/1493359
$document->get('module_title') 로 해결을 하셨다고 해서 라이믹스 통합게시판 관련 모듈이나 파일에서 글제목이 추출되는 부분을 찾고 있는데 도저히 찾질 못하겠습니다.
코어를 개조하는건 권장하지 않는건 알고 있는데요. 혹시 도움 좀 받을 수 있을까요?
마트몬
Lv. 8
댓글 2
게시판스킨은 sketchbook5 스킨의 목록형입니다.
이런 경우는 modules/board/skins/sketchbook5/_list_normal.html 을 아래와 같이 수정해 주시면 됩니다.
테이블 헤더에서 아래내용을 찾아 빨간부분 추가
<block cond="$val->type=='title' && $val->idx==-1">
<th scope="col" cond="$timeline_info"><span>{$lang->board}</span></th>
<th scope="col" cond="$module_info->include_modules"><span>{$lang->board}</span></th>
<th scope="col" cond="!$mi->show_cate && $mi->use_category=='Y'" class="m_no"><span>{$lang->category}</span></th>
<th scope="col" class="title"><span><a href="{getUrl('sort_index','title','order_type',$order_type)}"><!--@if(!$mi->link_board)-->{$lang->title}<!--@else-->{$lang->link_site}<!--@end--><i cond="$sort_index=='title'" class="arrow {$order_icon}"></i></a></span></th>
</block>
공지목록과 일반목록에서 아래내용을 찾아 빨간부분 추가
<block cond="$val->type=='title' && $val->idx==-1">
<td class="mid" cond="$timeline_info"><a href="{getUrl('module_srl', $document->get('module_srl'))}"><strong>{htmlspecialchars($modules_info[$document->get('module_srl')]->browser_title)}</strong></a></td>
<td cond="$module_info->include_modules"><a href="{$document->get('mid')}"><strong>{$document->get('module_title')}</strong></a></td>
<td cond="!$mi->show_cate && $mi->use_category=='Y'" class="cate" style="color:{$category_list[$document->get('category_srl')]->color}"|cond="$category_list[$document->get('category_srl')]->color!='transparent'"><strong>{$category_list[$document->get('category_srl')]->title}</strong></td>
<td class="title">
~~ 내용 생략 ~~
</td>
</block>