Skip to content

fix: implement onGetTreeItems for subcategory loading#58

Open
logmedia-openclaw wants to merge 2 commits intoWerkstattl:mainfrom
logmedia-openclaw:fix/subcategory-tree-loading
Open

fix: implement onGetTreeItems for subcategory loading#58
logmedia-openclaw wants to merge 2 commits intoWerkstattl:mainfrom
logmedia-openclaw:fix/subcategory-tree-loading

Conversation

@logmedia-openclaw
Copy link

Fixes issue #56 - Can't assign subcategories to blog entry

The werkl-blog-category-tree component was missing the onGetTreeItems method required by sw-tree to dynamically load nested categories. This caused subcategories to not appear when expanding parent nodes.

Added:

  • onGetTreeItems() method that fetches categories from werkl_blog_category repository
  • Supports filtering by parentId for hierarchical category loading
  • Returns null on error with console logging

OpenClaw Assistant added 2 commits February 5, 2026 16:41
…detail.html.twig

Fixes issue Werkstattl#46 - Missing attribute name value in cms-blo-detail.html.twig

The frontend template was accessing element.config.fullWidth directly, but Shopware CMS elements store config values in a nested 'value' property. Changed from:
  {% if element.config.fullWidth %}
to:
  {% if element.config.fullWidth.value %}
…y tree

Fixes issue Werkstattl#56 - Can't assign subcategories to blog entry

The werkl-blog-category-tree component was missing the onGetTreeItems method
required by sw-tree to dynamically load nested categories. This caused
subcategories to not appear when expanding parent nodes.

Added:
- onGetTreeItems() method that fetches categories from werkl_blog_category repository
- Supports filtering by parentId for hierarchical category loading
- Returns null on error with console logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant