스프링노트 연동 모듈의 내용 볼때 이전/다음 링크 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3920 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-03-10 14:08:51 +00:00
parent 675bfb7d34
commit 10c6124c71
4 changed files with 55 additions and 6 deletions

View file

@ -62,9 +62,15 @@
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);
else {
$pages = $oSpringnoteModel->getPages($q, true);
}
}
if($pageid) {
if($pages[$pageid]->prev) $page->prev = $pages[$pageid]->prev;
if($pages[$pageid]->next) $page->next = $pages[$pageid]->next;
}
Context::set('page', $page);
Context::set('pages', $pages);