XpressEngineGoogleCode / xe-board

Automatically exported from code.google.com/p/xe-board
0 stars 0 forks source link

API를 통해 dispBoardContentList의 게시물수를 조정 가능하도록 조치필요 #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
API를 통해서 목록을 불러올 경우 게시판 모듈에서 설정했던 
목록의 수는 임의로 변경 할 수 없는데요. 아래처럼 
개선하면 타 포럼 프로그램처럼 목록 수를 사용자가 정할 
수도 있고 API로 최신 게시물을 사용자가 원하는 대로 받아 
올수도 있을 것 같습니다.

현재
board.view.php p293
// 목록을 구하기 위한 대상 모듈/ 페이지 수/ 목록 수/ 
페이지 목록 수에 대한 옵션 설정
$args->module_srl = $this->module_srl; 
$args->page = Context::get('page');
$args->list_count = $this->list_count; 
$args->page_count = $this->page_count; 

수정
board.view.php p293
// 목록을 구하기 위한 대상 모듈/ 페이지 수/ 목록 수/ 
페이지 목록 수에 대한 옵션 설정
$args->module_srl = $this->module_srl; 
$args->page = Context::get('page');
$args->list_count = 
Context::get('list_count')?Context::get('list_count'):$this->list_count; 
$args->page_count = 
Context::get('page_count')?Context::get('page_count'):$this->page_count;

개선에 따른 큰 영향은 없어보이는데... 어떠세요?

Original issue reported on code.google.com by im.choij...@gmail.com on 28 Mar 2012 at 10:00

GoogleCodeExporter commented 9 years ago

Original comment by sinsy...@gmail.com on 12 Mar 2013 at 7:25