[fixed][Solved] Breadcrumb Home link

Forum rules
Only administrators can post or move items here.
Post Reply
jce76350
Beta Tester
Beta Tester
Posts: 2023
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

[fixed][Solved] Breadcrumb Home link

Post by jce76350 »

Hi,
last rev 9903
the "Home" link by default does not appear in the breadcrumb
see picture
Image
Jean-Claude Etiemble
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 255
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: Breadcrumb Home link

Post by Franck »

Actually, the lack of Home link on the breadcrumb is a major issue in terms of UX and good practices.
Will there be any fix? Thanx.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Breadcrumb Home link

Post by calguy1000 »

Fixed in svn.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jce76350
Beta Tester
Beta Tester
Posts: 2023
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: Breadcrumb Home link

Post by jce76350 »

OK solved for me in rev 9918

Now I can use {Navigator action='breadcrumbs'} or {nav_breadcrumbs} directly
But
{nav_breadcrumbs root='Home'} does not work
and I do not understand in $lang['help_root2']

Code: Select all

Specifying a negative integer value will only display the breadcrumbs up to the top level and will ignore the default page.
Jean-Claude Etiemble
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Breadcrumb Home link

Post by calguy1000 »

the alias is 'home' (it's a case sensitive thing).

let me describe how it works using this hypothetical page tree

1 Home (id=1,alias=home)
1.1 Page 1 (id=2,alias=page-1)
1.1.1 Page 2 (id=3,alias=page-2)
1.2 Page 3 (id=4,alias=page-3)
1.2.1 Page 4 (id=5,alias=page-4)
1.2.1.1 Page 5 (id=6,alias=page-5)
2 Page 6 (id=7,alias=page-6)
2.1 Page 7 (id=8,alias=page-7)
2.1.1 Page 8 (id=9,alias=page-8)
2.2 Page 9 (id=10,alias=page-9)
2.2.1 Page 10 (id=11,alias=page-10)
2.2.1.1 Page 11 (id=12,alias=page-11)

If my current page is "page-4":
{nav_breadcrumbs}
should display: Home >> Page 3 >> Page 4
{nav_breadcrumbs root=-1}
should display: Home >> Page 3 >> Page 4
** "home" is a direct ancestor of my current page.
{nav_breadcrumbs root='page-3'}
should display: Page 3 >> Page 4
** page-3 is in the output path, so it is the first we will display.
{nav_breadcrumbs root='page-9'}
should display: Home >> Page 3 >> Page 4
** page-9 is not in the path, so nothing to stop at.

if my current page is "page-10"
{nav_breadcrumbs}
should display: Home >> Page 6 >> Page 9 >> Page 10
{nav_breadcrumbs root=-1}
should display: Page 6 >> Page 9 >> Page 10
** the home page is not automatically added.
{nav_breadcrumbs root='page-3'}
should display: Page 6 >> Page 9 >> Page 10
** page-3 is not in the hierarchy path, so n othing to stop at
{nav_breadcrumbs root='page-9'}
should display: Page 9 >> Page 10
** page-9 is in the hierarchy path, so that is where our first path is.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jce76350
Beta Tester
Beta Tester
Posts: 2023
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: Breadcrumb Home link

Post by jce76350 »

OK Super ;) thanks
Jean-Claude Etiemble
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 255
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: [fixed] Breadcrumb Home link

Post by Franck »

Thanx for the fix and the explanation (interesting features)!
Post Reply

Return to “Closed Issues”