mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 15:21:40 +09:00
스프링노트 모듈에서 pageid 지정시 해당 페이지만 보기 또는 해당 페이지부터 보기 옵션 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3382 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6d1e27a3c4
commit
1fee1ce68f
10 changed files with 56 additions and 3 deletions
|
|
@ -38,7 +38,8 @@
|
|||
if(!$this->grant->list) return $this->dispSpringnoteMessage('msg_not_permitted');
|
||||
|
||||
$pageid = (int)Context::get('pageid');
|
||||
if(!$pageid) $pageid = $this->module_info->pageid;
|
||||
if($this->module_info->pageid && $this->module_info->pageid_option != 'list') $pageid = $this->module_info->pageid;
|
||||
if(!$pageid && $this->module_info->pageid) $pageid = $this->module_info->pageid;
|
||||
|
||||
$q = Context::get('q');
|
||||
|
||||
|
|
@ -55,7 +56,11 @@
|
|||
}
|
||||
|
||||
// 페이지 목록 가져오기
|
||||
$pages = $oSpringnoteModel->getPages($q, true);
|
||||
if($this->module_info->pageid && $this->module_info->pageid_option != 'list') $pages = null;
|
||||
else {
|
||||
if($this->module_info->pageid && $this->module_info->pageid_option == 'list') $pages = $oSpringnoteModel->getPages($q, true, $this->module_info->pageid);
|
||||
else $pages = $oSpringnoteModel->getPages($q, true);
|
||||
}
|
||||
|
||||
Context::set('page', $page);
|
||||
Context::set('pages', $pages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue