Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
[Résolu]V2 breadcrumb / fil d'ariane
#7
Résolu pour moi en SVN 9918
pour information utiliser {Navigator action='breadcrumbs'} ou {nav_breadcrumbs} pour afficher le chemin complet

avec une nouvelle possibilité
La spécification d'un nombre de valeur négative affichera le fil d'Ariane jusqu'au niveau supérieur et ignorera la page par défaut.
Explication de CG en version originale
Citation :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.
J-C Etiemble v 2.2.xx


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 2 visiteur(s)