Page 1 of 1
Depth of breadcrumb navigation limited?
Posted: Wed May 16, 2007 9:53 pm
by tingeltangeltill
Hi out there,
a few minutes ago I recognized that there is no sixth level in the breadcrumb navigation. If you have a deeper Level, than it is displayed at the fifth place of the breadcrumb nav, wheather if it is the sixth or the ninth level.
I had a quick look at the breadcrumb tag, but i couldn't find a depth limitation.
Half an hour fun with the forum search was without a result.
Hope to get help from anyone
Regards Till
Re: Depth of breadcrumb navigation limited?
Posted: Thu May 17, 2007 5:37 pm
by RonnyK
Till,
I did a quick test in 1.0.6 but 7 level deep was no problem, I only read about a setting to not display "menus with 'not show in menu'" to be not set in the breadcrumbs.
Ronny
Re: Depth of breadcrumb navigation limited?
Posted: Thu May 17, 2007 8:54 pm
by tingeltangeltill
RonnyK wrote:
Till,
I did a quick test in 1.0.6 but 7 level deep was no problem, I only read about a setting to not display "menus with 'not show in menu'" to be not set in the breadcrumbs.
Ronny
Hi Ronny,
thanks for this impulse. I found the following section in the function.breadcrumbs.php
Code: Select all
if($content->ShowInMenu() && $content->Active() )
and changed it to that:
If I've got time, I'll find a better solution for this problem.
It would be great if somebody who is not a php noob like me could write these simple 4-5 lines
just like the request
Code: Select all
#Check if user has requested an initial delimiter
if (isset($params['initial'])) {
if ($params['initial'] == "1") {
$trail .= $delimiter . " ";
}
}
if the user has set the option to 1 (yes show non shown menu links in the breadcrumb) then fill in
instead of
Code: Select all
$content->ShowInMenu() && if($content->!Active()
in the if question on line 72.
Would be someone so kind?
Thanks for your help!
Till
Re: Depth of breadcrumb navigation limited?
Posted: Fri May 18, 2007 7:08 am
by alby
tingeltangeltill wrote:
thanks for this impulse. I found the following section in the function.breadcrumbs.php
Code: Select all
if($content->ShowInMenu() && $content->Active() )
and changed it to that:
If I've got time, I'll find a better solution for this problem.
It would be great if somebody who is not a php noob like me could write these simple 4-5 lines
just like the request
Code: Select all
#Check if user has requested an initial delimiter
if (isset($params['initial'])) {
if ($params['initial'] == "1") {
$trail .= $delimiter . " ";
}
}
if the user has set the option to 1 (yes show non shown menu links in the breadcrumb) then fill in
instead of
Code: Select all
$content->ShowInMenu() && if($content->!Active()
in the if question on line 72.
Try with (not tested):
{breadcrumbs showall=1}
Code: Select all
Substitute:
if( $content->ShowInMenu() && $content->Active() )
{
$path[] = $currentNode;
}
With:
if (isset($params['showall'])) {
if( $content->Active() )
{
$path[] = $currentNode;
}
}
Alby
Re: Depth of breadcrumb navigation limited?
Posted: Fri May 18, 2007 9:47 am
by tingeltangeltill
Hi Alby,
thanks for that, but it is not working, if there is no "showall" and I think that's a must.
Regards
Till
Re: Depth of breadcrumb navigation limited?
Posted: Fri May 18, 2007 12:10 pm
by alby
tingeltangeltill wrote:
thanks for that, but it is not working, if there is no "showall" and I think that's a must.
First edit file function.breadcrumbs.php and after enter {breadcrumbs showall=1}
Alby
Re: Depth of breadcrumb navigation limited?
Posted: Fri May 18, 2007 3:19 pm
by tingeltangeltill
alby wrote:
tingeltangeltill wrote:
thanks for that, but it is not working, if there is no "showall" and I think that's a must.
First edit file function.breadcrumbs.php and after enter {breadcrumbs showall=1}
Alby
fore sure, I did it that way. Should it be like the way I said?