프로그래밍/XE(XpressEngine)
게시물 보기 하단에 추천비추천 버튼 달기
뮤직라이프, Musiclife is my life.
2010. 12. 24. 14:38
스킨파일에서 view_document.html파일의 원하는 위치에 아래 부분을 복사해서 넣으면 됩니다.
다만 로그인여부에 따라 다른 내용을 표시하고자 할 경우
<!--@if(!$is_logged)--> 어쩌구저쩌구.. 라는 코드를 넣어야 합니다.
xe를 사용한다면 위 문법을 아실듯.. ^^
<!--추천-->
<a href="#" onclick="doCallModuleAction('document','procDocumentVoteUp','{$document_srl}');return false;" class="button"><span>{$menu_str = Context::getLang('cmd_vote')}</span></a>
<a href="#" onclick="doCallModuleAction('document','procDocumentVoteUp','{$document_srl}');return false;" class="button"><span>{$menu_str = Context::getLang('cmd_vote')}</span></a>
<!--비추천-->
<a href="#" onclick="doCallModuleAction('document','procDocumentVoteDown','{$document_srl}');return false;" class="button"><span>{$menu_str = Context::getLang('cmd_vote_down')}</span></a>
<!--신고-->
<a href="#" onclick="doCallModuleAction('document','procDocumentDeclare','{$document_srl}');return false;" class="button"><span>{$menu_str = Context::getLang('cmd_declare')}</span></a>
여기까지 덧붙이시면 됩니다.