View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007816 | module Visual CMS | module Visual CMS - sub | public | 2025-08-04 13:33 | 2025-08-06 07:41 |
Reporter | OxidSimonGassenschmidt | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Summary | 0007816: Widget TreeView lists inactive category-pages | ||||
Description | TreeView lists all pages, inactive and active pages. so if you press on an inactive page you get error-mesages Filter TreeView for only active pages. | ||||
Steps To Reproduce | 1. Installe Shop 2. Activate Visual CMS 3. Create Page "Main-Overview" as Category 4. Add TreeView Widget 5. Create at least one Page, e.g. "Child-Page", as Category but inactive 6. Assign Child-Page to Main-Overview 7. go to frontend Main-Overview page, you should see the category-tree with the inactive child-page | ||||
Tags | No tags attached. | ||||
|
Acknowledged DR |
|
Possible Fix in twig-template (i would prefer a filter in the controller for the nodelist contruction) vendor/ddoe/visualcms-module/views/twig/shortcodes/visualcms_shortcode_treeview_node.html.twig {% for node in nodesList %} {% if node['data'].isActive() %} <nav class="nav nav-pills flex-column{% if isChild %} ms-3{% endif %}"> {{ node['data'].getLink() }} {% if node.children %} {% include "@ddoevisualcms/shortcodes/visualcms_shortcode_treeview_node.html.twig" with { nodesList: node.child, isChild: true } %} {% endif %} </nav> {% endif %} {% endfor %} |
|
A similar thing happens in 0007689, but with articles instead of categories |