1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 17:50:12 +02:00

Pages/Menus: each book/chapter now has it's own template.

This commit is contained in:
Cameron
2013-05-29 23:00:55 -07:00
parent 19b616dae4
commit 7b88d1cb6d
11 changed files with 254 additions and 195 deletions

View File

@@ -15,7 +15,9 @@ if (!defined('e107_INIT')) { exit; }
$parm = eHelper::scParams($parm);
$template = e107::getCoreTemplate('page','nav',false,true); // always merge
$tmpl = e107::getCoreTemplate('chapter','nav',false,true); // always merge
$template = $tmpl['showPage'];
$request = e107::getRegistry('core/pages/request');
if($request && is_array($request))
@@ -24,10 +26,12 @@ if($request && is_array($request))
{
case 'listChapters':
$parm['cbook'] = $request['id'];
$template = $tmpl['listChapters'];
break;
case 'listPages':
$parm['cchapter'] = $request['id'];
$template = $tmpl['listPages'];
break;
case 'showPage':