View Issue Details

IDProjectCategoryView StatusLast Update
0007816module Visual CMSmodule Visual CMS - subpublic2025-08-06 07:41
ReporterOxidSimonGassenschmidt Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Summary0007816: Widget TreeView lists inactive category-pages
DescriptionTreeView 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 Reproduce1. 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
TagsNo tags attached.

Relationships

related to 0007689 resolvedmf Article widget ignores product active/inactive state 

Activities

QA

2025-08-04 13:52

administrator   ~0018136

Acknowledged
DR

OxidSimonGassenschmidt

2025-08-04 14:07

reporter   ~0018137

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 %}

SvenBrunk

2025-08-06 07:41

manager   ~0018140

A similar thing happens in 0007689, but with articles instead of categories