웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
인기글
2015.05.07 18:02
document.model.php
function getDocumentList($obj, $except_notice = false, $load_extra_vars=true, $columnList = array()) ~~ $output->total_count = $page_navigation->total_count; $output->total_page = $page_navigation->total_page; $output->page = $page_navigation->cur_page; } elseif(Context::get('sort_index')=='best') { $args->s2_voted_count = '3'; } else { $output = executeQueryArray($query_id, $args, $columnList); } }
elseif(Context::get('sort_index')=='best')
{
$args->s2_voted_count = '3';
}
를 삽입합니다.
(추천수 3개 이상의 게시글만 보여줍니다)
getDocumentList.xml에 다음과 같은 코드를 추가합니다.
<condition operation="equal" column="member_srl" var="s_member_srl" pipe="or" /> <condition operation="more" column="readed_count" var="s_readed_count" pipe="or" /> <condition operation="more" column="voted_count" var="s_voted_count" pipe="or" /><condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" /><condition operation="more" column="comment_count" var="s_comment_count" pipe="or" /><condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" /><condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" /><condition operation="like_prefix" column="regdate" var="s_regdate" pipe="or" /><condition operation="like_prefix" column="last_update" var="s_last_update" pipe="or" /><condition operation="like_prefix" column="ipaddress" var="s_ipaddress" pipe="or" />~~<condition operation="more" column="voted_count" var="s2_voted_count" pipe="and"/>
<condition operation="more" column="voted_count" var="s2_voted_count" pipe="and"/>
스케치북5의 list.html에 다음과 같이 코드를 삽입합니다.
<a class="btn_img fl" href="{getUrl('','order_type','asc','mid',$mid,'sort_index','best','page',1,'document_srl','','listStyle',$listStyle)}"><i class="voted_image"></i> 인기글</a>
위에
<a cond="@in_array('home',$mi->btm_mn)" class="btn_img fl" href="{getUrl('','mid',$mid,'page',$page,'document_srl','','listStyle',$listStyle)}"><i class="fa fa-bars"></i> {$lang->cmd_list}</a>
댓글 1
제목 | 글쓴이 | 날짜 |
---|---|---|
간편 css 압축 | Ansi™ | 2015.04.21 |
폰갭과 웹앱 그리고 XE... [6] | onTrust | 2015.04.23 |
PC에서 모바일화면 보는방법 [2] | 빅스타 | 2015.04.29 |
리스트에 스크랩 버튼을 뺴는 코드입니다. [3] | 착한악마 | 2015.04.30 |
xe설치시 퍼미션 문제나 DB엑세스 문제 해결하기 | 길가던분 | 2015.05.01 |
CKEditor 이용시 몇가지 유용한 설정 [11] | prologos | 2015.05.02 |
속도관련 나노팁. [5] | 1052 | 2015.05.04 |
member 모듈 업데이트가 계속 나오는 경우 | 고니고니 | 2015.05.06 |
[서버운영] 웹 재요청 방지 및 트래픽 감소를 위한 방법 | 마루디자인 | 2015.05.06 |
인기글 [1] | kdp | 2015.05.07 |
게시판의 MP3파일 갯수 표시하기 | kdp | 2015.05.07 |
오늘 작성된 게시글수 [2] | kdp | 2015.05.07 |
모바일 이미지 제거모드 | kdp | 2015.05.07 |
모바일 이미지축소모드 | kdp | 2015.05.07 |
저같은 초보분들이 궁금해 하실것같아서요 [3] | 착한동구 | 2015.05.08 |
플렛모바일 네이버로 로그인하기 버튼 | LI-NA | 2015.05.17 |
확장 컴포넌트 밖으로 뺀 후 완전한 버튼화 [1] | 키스미베이베 | 2015.05.20 |
레이어형 로그인 사용시에 SSL 적용방법 (선택적 사용시) [1] | 불금 | 2015.05.20 |
XE 템플릿 문법 : 조건부 class 작성하기 | AJKJ | 2015.05.23 |
자바로 스크롤 구현 [1] | 착한동구 | 2015.05.25 |