Fix section=>block in CMS block documentation#2058
Open
nickygerritsen wants to merge 2 commits intoshopware:mainfrom
Open
Fix section=>block in CMS block documentation#2058nickygerritsen wants to merge 2 commits intoshopware:mainfrom
nickygerritsen wants to merge 2 commits intoshopware:mainfrom
Conversation
This showed `section` in the path instead of `block`.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes incorrect path documentation for CMS blocks by changing "section" to "block" in the directory path. While the directory change is correct, the filename itself appears to have an additional issue with redundant "block" text.
- Changed the incorrect directory from
section/toblock/in the example path
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
bschulzebaek
reviewed
Jan 6, 2026
| * **Extension**: `.html.twig` | ||
|
|
||
| **Shopware is expecting the prefix as part of the full filename in `src/Storefront/Resources/views/storefront/section/cms-section-block-container.html.twig`.** | ||
| **Shopware is expecting the prefix as part of the full filename in `src/Storefront/Resources/views/storefront/block/cms-block-container.html.twig`.** |
Contributor
There was a problem hiding this comment.
Actually this path should be correct: it refers to the place where blocks are loaded to provide a bit more technical context. We could rephrase it a bit:
[!NOTE]
Block components are loaded in `src/Storefront/Resources/views/storefront/section/cms-section-block-container.html.twig`. This loader expect the following format for block components: `cms-block-image-text-reversed.html.twig`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This showed
sectionin the path instead ofblock.