Depth of breadcrumb navigation limited?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
tingeltangeltill

Depth of breadcrumb navigation limited?

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Depth of breadcrumb navigation limited?

Post 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
tingeltangeltill

Re: Depth of breadcrumb navigation limited?

Post 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:

Code: Select all

 if($content->Active() ) 
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

Code: Select all

if($content->Active() )
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
Last edited by tingeltangeltill on Thu May 17, 2007 9:15 pm, edited 1 time in total.
alby

Re: Depth of breadcrumb navigation limited?

Post 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:

Code: Select all

 if($content->Active() ) 
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

Code: Select all

if($content->Active() )
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
tingeltangeltill

Re: Depth of breadcrumb navigation limited?

Post 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
alby

Re: Depth of breadcrumb navigation limited?

Post 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
tingeltangeltill

Re: Depth of breadcrumb navigation limited?

Post 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?
Locked

Return to “Modules/Add-Ons”