Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions guides/plugins/apps/content/cms/add-custom-cms-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ In this example we will define a custom CMS block that will extend the default b

<!-- The slots that your block holds which again hold CMS elements. -->
<slots>
<!-- A slot requires a unique name and a type which refers to the CMS element it shows. Right now you can only use the CMS elements provided by Shopware but at a later point you will be able to add custom elements too. -->
<!-- A slot requires a unique name and a type which refers to the CMS element it shows. Currently, app CMS blocks can only use CMS elements provided by Shopware. -->
<slot name="left" type="text">
<!-- The slot requires some basic configuration. The following config-value elements highly depend on which element the slot holds. -->
<config>
Expand Down Expand Up @@ -203,10 +203,10 @@ The DOM structure of the block in the CMS editor will look like this:

Each slot has a **unique** `name` and a `type` that refers to which element it shows.
All available elements can be found in [src/Administration/Resources/app/administration/src/module/sw-cms/elements](https://github.com/shopware/shopware/tree/trunk/src/Administration/Resources/app/administration/src/module/sw-cms/elements).
At a later point you will also be able to define custom elements but for now you can use the elements shipped by Shopware.
Currently, app CMS blocks can use the elements shipped by Shopware.

The `config` of a slot is very dynamic as it highly depends on which `type` you have chosen.
A good starting point to find out which elements require which configuration is each element's `index.js` in the corresponding directory in [src/Administration/Resources/app/administration/src/module/sw-cms/blocks](https://github.com/shopware/shopware/tree/trunk/src/Administration/Resources/app/administration/src/module/sw-cms/blocks).
A good starting point to find out which elements require which configuration is each element's `index.js` in the corresponding directory in [src/Administration/Resources/app/administration/src/module/sw-cms/elements](https://github.com/shopware/shopware/tree/trunk/src/Administration/Resources/app/administration/src/module/sw-cms/elements).

## Registering blocks

Expand Down
5 changes: 3 additions & 2 deletions guides/plugins/apps/content/cms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
nav:
title: CMS
position: 10

---

# CMS

Shopware allows you to extend the content management capabilities of the platform by adding a custom CMS block from an app. By creating a custom app, you can define and integrate your own unique CMS blocks. These blocks can contain custom content, such as text, images, or HTML, and can be positioned within the CMS layout according to your requirements. Once the app is installed and activated, the custom CMS block becomes available within the Shopware administration panel, empowering you to create engaging and tailored content for your online store.
Shopware allows you to extend the platform's content management capabilities by adding custom CMS blocks or elements from an app.
By creating a custom app, you can define and integrate your own unique CMS blocks. These blocks can contain custom content, such as text, images, or HTML, and can be positioned within the CMS layout according to your requirements.
Once the app is installed and activated, the custom CMS block becomes available in the Shopware Administration, allowing you to create tailored content for your online store.
3 changes: 2 additions & 1 deletion guides/plugins/apps/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ nav:

# Content

You can assign content to specific categories, create layouts, and control the visibility of content based on various conditions. It provides a flexible and intuitive system for managing and presenting your store's content, helping you deliver a seamless and engaging customer experience.
With apps, you can assign content to specific categories, create layouts, and control content visibility based on various conditions.
This provides a flexible and intuitive way to manage and present your store content, helping you deliver a seamless and engaging customer experience.