mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Page: Breadcrumb fix for generated chapters lists when using default URLs. (not SEF)
This commit is contained in:
@@ -56,6 +56,12 @@ class core_page_url extends eUrlConfig
|
|||||||
switch ($route[0])
|
switch ($route[0])
|
||||||
{
|
{
|
||||||
case 'book':
|
case 'book':
|
||||||
|
|
||||||
|
if(!empty($params['book_id']))
|
||||||
|
{
|
||||||
|
$params['id'] = $params['book_id'];
|
||||||
|
}
|
||||||
|
|
||||||
$url .= "bk=".intval($params['id']);
|
$url .= "bk=".intval($params['id']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
5
page.php
5
page.php
@@ -441,7 +441,8 @@ class pageClass
|
|||||||
'chapter_name' => $tp->toHtml($row['chapter_name']),
|
'chapter_name' => $tp->toHtml($row['chapter_name']),
|
||||||
'chapter_sef' => $bookSef,
|
'chapter_sef' => $bookSef,
|
||||||
'book_sef' => $bookSef,
|
'book_sef' => $bookSef,
|
||||||
'page_sef' => ''
|
'page_sef' => '',
|
||||||
|
'book_id' => $row['chapter_parent']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@@ -451,7 +452,7 @@ class pageClass
|
|||||||
$tmpl = varset($tml[$layout]);
|
$tmpl = varset($tml[$layout]);
|
||||||
|
|
||||||
$bread = array(
|
$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(
|
$var = array(
|
||||||
|
Reference in New Issue
Block a user