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:
parent
fd35083546
commit
dfb8435d58
@ -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;
|
||||
|
||||
|
5
page.php
5
page.php
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user