1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-13 17:12:07 +02:00

Page: Breadcrumb fix for generated chapters lists when using default URLs. (not SEF)

This commit is contained in:
Cameron 2017-10-03 12:51:20 -07:00
parent fd35083546
commit dfb8435d58
2 changed files with 9 additions and 2 deletions

View File

@ -56,6 +56,12 @@ class core_page_url extends eUrlConfig
switch ($route[0])
{
case 'book':
if(!empty($params['book_id']))
{
$params['id'] = $params['book_id'];
}
$url .= "bk=".intval($params['id']);
break;

View File

@ -441,7 +441,8 @@ class pageClass
'chapter_name' => $tp->toHtml($row['chapter_name']),
'chapter_sef' => $bookSef,
'book_sef' => $bookSef,
'page_sef' => ''
'page_sef' => '',
'book_id' => $row['chapter_parent']
);
@ -451,7 +452,7 @@ class pageClass
$tmpl = varset($tml[$layout]);
$bread = array(
0 => array('text' => $tp->toHtml($bookTitle), 'url'=> e107::getUrl()->create('page/book/index', $urlData,'allow=chapter_id,chapter_sef,book_sef,page_sef'))
0 => array('text' => $tp->toHtml($bookTitle), 'url'=> e107::getUrl()->create('page/book/index', $urlData,'allow=chapter_id,chapter_sef,book_id,book_sef,page_sef'))
);
$var = array(