게시판 모듈에 최신순/업데이트 순 순서를 정할 수 있도록 기능 추가하고 xe시리즈의 스킨에 반영

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1924 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-13 04:26:06 +00:00
parent 2759bf5363
commit 89d40258bd
8 changed files with 48 additions and 4 deletions

View file

@ -96,6 +96,20 @@
$args->sort_index = Context::get('sort_index');
$args->order_type = Context::get('order_type');
// 스킨에서 설정한 기본 정렬 대상을 구함
if(!$args->sort_index) {
switch($this->module_info->order_target) {
case "updated" :
$args->sort_index = "update_order";
$args->order_type = "asc";
break;
default :
$args->sort_index = "list_order";
$args->order_type = "asc";
break;
}
}
// 목록 구함, document->getDocumentList 에서 걍 알아서 다 해버리는 구조이다... (아.. 이거 나쁜 버릇인데.. ㅡ.ㅜ 어쩔수 없다)
$output = $oDocumentModel->getDocumentList($args);