댓글 2014-04-29
지정된 추천수 이상이면 제목에 효과를 주는 방법을 공유합니다.
예시)
<a href="{getUrl('','document_srl',$document->document_srl, 'category', $category)}"
<!--@if ($document->get('voted_count') >= 100)-->style="font-weight:bold;"<!--@end-->>
{$document->getTitle($module_info->subject_cut_size)}</a>추천수가 100이 넘으면 제목에 볼드효과를 부여하는 소스입니다.
볼드이외의 효과를 원하시면 style 속성을 변경하시면됩니다.
예시는 기본 <a href="{getUrl('','document_srl',$document->document_srl, 'category', $category)}">{$document->getTitle($module_info->subject_cut_size)}</a>소스에서 <a>태그 닫기전에 <!--@if ($document->get('voted_count') >= 100)-->style="font-weight:bold;"<!--@end-->를 추가한것입니다.
<!--@if ($document->get('voted_count') >= 추천수)-->추천수 이상이면 표시됨<!--@end-->
위와같은 형식으로 게시판 스킨을 수정하셔서 활용하시면됩니다.
태그목록
첨부파일 목록
추천수와 함께 비추천수로도 효과를 주고싶어서 $document->get('blamed_count')도 해보려했는데 어째서인지 이건 안되네요ㅠㅠ