Skip to content

Commit e4d88b6

Browse files
committed
PHP API Ref sidebar: Fix nav_id
Allow to have other namespaces than just Ibexa\Contracts
1 parent a5e07fe commit e4d88b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/php_api_ref/.phpdoc/template/components/menu.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% for child in entry.children %}
44
{% include 'components/menu-entry.html.twig' with {
55
title: entry.name|shortFQSEN ~ ' ' ~ child.name|shortFQSEN,
6-
nav_id: loop.index,
6+
nav_id: nav_id ~ '-' ~ loop.index,
77
expanded: true,
88
entry: child,
99
} %}

tools/php_api_ref/.phpdoc/template/components/sidebar.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ul class="md-nav__list">
1212
<li></li>
1313
{% for namespace in project.namespace.children %}
14-
{% include 'components/menu.html.twig' with { entry: namespace, depth: 0 } %}
14+
{% include 'components/menu.html.twig' with { entry: namespace, depth: 0, nav_id: loop.index } %}
1515
{% set break = true %}
1616
{% endfor %}
1717
</ul>

0 commit comments

Comments
 (0)