File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ If you want to display a few levels of your tree it might be simplest and most s
65
65
status : " open|closed" ,
66
66
show_depth : 2
67
67
) {
68
- structure_url_title
68
+ url
69
69
entry {
70
70
title
71
71
}
72
72
children {
73
- structure_url_title
73
+ url
74
74
entry {
75
75
title
76
76
}
@@ -92,7 +92,7 @@ A good way to display all levels of our navigation tree in Twig is by defining a
92
92
{% macro showNav(item) %}
93
93
{% import _self as self %}
94
94
<li>
95
- <a href="{{ item.structure_url_title }}">{{ item.entry.title }}</a>
95
+ <a href="{{ item.url }}">{{ item.entry.title }}</a>
96
96
{% if item.children|length %}
97
97
<ul>
98
98
{% for child in item.children %}
@@ -128,7 +128,7 @@ In Blade we can use some PHP code to simplify recursively displaying the navigat
128
128
])->render(function($item, $children, $depth) {
129
129
return implode('', [
130
130
'<li >',
131
- '<a href =" '.$item['structure_url_title '].'" >'.$item['entry']['title'].'</a >',
131
+ '<a href =" '.$item['url '].'" >'.$item['entry']['title'].'</a >',
132
132
$children ? '<ul >'.$children.'</ul >' : '',
133
133
'</li >'
134
134
]);
You can’t perform that action at this time.
0 commit comments