You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple widget that uses informations about page hierarchy to draw a context side menu bar.
{% import 'macros/menuItem.html' as menuItem %}
{% macro render(page, slug) %}
{% if (page.level == 3) %}
{% set children = page._children %}
<divclass="menu-ist panel-group" id="accordion" role="tablist" aria-multiselectable="true"><divclass="panel panel-default menuPageChildren"><divclass="panel-heading" role="tab" id="headingOne"><h4class="panel-title"><ahref="{{page._url}}">
{{page.title}}
</a></h4></div><divclass="panel-body">
{% if children %}
<ulclass="m-0 p-0 main-menu">
{% for child in children %}
{{ menuItem.render(child, slug) }}
{% endfor %}
</ul>
{% endif %}
</div></div></div>
{% elseif page.level > 3 %}
{{ render(page._ancestors[3], slug) }}
{% endif %}
{% endmacro %}
If I reorganize pages I can get the right tree in draft and preview mode but not in live view.
I done a "select all" and commit all batch in the page but with no success.
The text was updated successfully, but these errors were encountered:
Sorry for the delay. We've not had a lot of extra time lately. I'll try to look this week. If you can provide a minimal test case project that would help speed things up.
Sorry, I missed the notifications.
You can find in the attachments my page tree, the above code in "draft" mode and live.
You'll see that the side menu in live mode doesn't show the right data.
The only way I had to make links appears is to move every page (1600 pages) in the tree view and commit one per time.
Thanks
I have a simple widget that uses informations about page hierarchy to draw a context side menu bar.
If I reorganize pages I can get the right tree in draft and preview mode but not in live view.
I done a "select all" and commit all batch in the page but with no success.
The text was updated successfully, but these errors were encountered: