Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 30, 2025

The fullWidth config check was accessing the config object directly instead of its .value property, causing the layout to incorrectly apply full-width styling after re-saving the blogDetail layout in Shopware 6.7.3.1.

Changes

  • Updated element.config.fullWidth to element.config.fullWidth.value in cms-block-blog-detail.html.twig line 4

This aligns with the pattern used consistently throughout the codebase for accessing CMS element config values:

{# Before #}
<div class="{% if element.config.fullWidth %}col-12{% elseif ... %}">

{# After #}
<div class="{% if element.config.fullWidth.value %}col-12{% elseif ... %}">

The .value accessor is required for all CMS config properties, as defined in the admin configuration panel and used consistently in cms-element-blog-detail.html.twig for showAuthor.value and showCategory.value.

Original prompt

This section details on the original issue you should resolve

<issue_title>Missing attribute name value in cms-blo-detail.html.twig</issue_title>
<issue_description>### cms-blog-detail.html.twig:
##Line 3:

Missing attribute name "value"

...if element.config.fullWidth...

should be changed to:

...if element.config.fullWidth.value...

Leads to error when blogDetail layout is re-saved. The blog posts are then shown in full width all the time. (SW 6.7.3.1)</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix missing attribute name value in cms-blo-detail.html.twig Fix missing .value accessor for fullWidth config in cms-block-blog-detail Dec 30, 2025
Copilot AI requested a review from 7underlines December 30, 2025 20:49
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.

Missing attribute name value in cms-blo-detail.html.twig

2 participants