Page 1 of 1

[fixed][Solved] Breadcrumb Home link

Posted: Fri Apr 10, 2015 12:08 pm
by jce76350
Hi,
last rev 9903
the "Home" link by default does not appear in the breadcrumb
see picture
Image

Re: Breadcrumb Home link

Posted: Mon Apr 13, 2015 9:06 am
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.

Re: Breadcrumb Home link

Posted: Sat Apr 18, 2015 3:39 pm
by calguy1000
Fixed in svn.

Re: Breadcrumb Home link

Posted: Sat Apr 18, 2015 4:05 pm
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.

Re: Breadcrumb Home link

Posted: Sat Apr 18, 2015 4:57 pm
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.

Re: Breadcrumb Home link

Posted: Sat Apr 18, 2015 5:34 pm
by jce76350
OK Super ;) thanks

Re: [fixed] Breadcrumb Home link

Posted: Sat Apr 18, 2015 8:52 pm
by Franck
Thanx for the fix and the explanation (interesting features)!