Skip to content

Commit f201b67

Browse files
nickygerritsenCopilotsushmangupta
authored
Fix section=>block in CMS block documentation (#2058)
* Fix section=>block in CMS block documentation This showed `section` in the path instead of `block`. * Update guides/plugins/plugins/content/cms/add-cms-block.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update CMS block filename and loader path details Clarified the file naming convention for CMS block components and updated the loader path. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Su <112690947+sushmangupta@users.noreply.github.com>
1 parent 2b29a93 commit f201b67

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

guides/plugins/plugins/content/cms/add-cms-block.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ The Storefront template defines how your element appears on the actual storefron
159159
* **Technical name**: `image-text-reversed` (The `name` property in Step 2)
160160
* **Extension**: `.html.twig`
161161

162-
**Shopware is expecting the prefix as part of the full filename in `src/Storefront/Resources/views/storefront/section/cms-section-block-container.html.twig`.**
163-
164-
Full example: `cms-block-image-text-reversed.html.twig`
162+
The block components are loaded in `src/Storefront/Resources/views/storefront/section/cms-section-block-container.html.twig`. This loader expects the following format for block components: `cms-block-image-text-reversed.html.twig`.
165163

166164
### Basic Template
167165

0 commit comments

Comments
 (0)