Skip to content

Commit ba59074

Browse files
committed
Removed mentions of Storefront Twig Component groups
1 parent c0efad0 commit ba59074

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

docs/templating/components.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ description: Twig components allow you to inject any custom widgets into selecte
77
Twig Components are widgets (for example, **My dashboard** blocks from Headless edition) and HTML code (for example, a tag for loading JS or CSS files) that you can inject into the existing templates to customize and extend the user interface.
88
They are combined into groups that are rendered in designated templates.
99

10-
Twig Component groups are available for:
10+
Built-in Twig Component groups are available for the [back office](custom_components.md), but you can create your own for use anywhere.
1111

12-
- [back office](custom_components.md)
13-
- [storefront](customize_storefront_layout.md)
14-
15-
To learn which groups are available in a given view, use the [integration Symfony Profiler](#symfony-profiler-integration).
12+
To learn which groups are available in a given view, use the [integration with Symfony Profiler](#symfony-profiler-integration).
1613

1714
## Create Twig Component
1815

@@ -35,7 +32,7 @@ The available attributes are:
3532

3633
This way requires writing custom code, but it allows you to fully control the rendering of the component.
3734

38-
### YAML Configuration
35+
### YAML configuration
3936

4037
You can create a Twig Component and add it to a group using YAML configuration, as in the example below:
4138

docs/templating/layout/customize_storefront_layout.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,6 @@ To customize your shop, you can override either whole templates, or specific com
1111
The built-in templates belong to the `storefront` [theme](design_engine.md).
1212
To override any of them, copy its directory structure in your template directory.
1313

14-
## Customize with Twig Components
15-
16-
You can customize parts of the storefront by using [Twig components](components.md).
17-
This allows you to inject your own widgets, extending the storefront behavior.
18-
19-
The available groups for the storefront are:
20-
21-
| Group name | Template file |
22-
|---|---|
23-
| `storefront-before-maincart` | `vendor/ibexa/storefront/src/bundle/Resources/views/themes/storefront/cart/component/maincart/maincart.html.twig` |
24-
| `storefront-after-maincart` | `vendor/ibexa/storefront/src/bundle/Resources/views/themes/storefront/cart/component/maincart/maincart.html.twig` |
25-
| `storefront-before-minicart` | `vendor/ibexa/storefront/src/bundle/Resources/views/themes/storefront/cart/component/minicart/minicart.html.twig` |
26-
| `storefront-after-minicart` | `vendor/ibexa/storefront/src/bundle/Resources/views/themes/storefront/cart/component/minicart/minicart.html.twig` |
27-
| `storefront-before-add-to-cart` | `vendor/ibexa/cart/src/bundle/Resources/views/themes/standard/cart/component/add_to_cart/add_to_cart.html.twig` |
28-
| `storefront-after-add-to-cart` | `vendor/ibexa/cart/src/bundle/Resources/views/themes/standard/cart/component/add_to_cart/add_to_cart.html.twig` |
29-
| `storefront-before-summary` | `vendor/ibexa/cart/src/bundle/Resources/views/themes/standard/cart/component/summary/summary.html.twig` |
30-
| `storefront-after-summary` | `vendor/ibexa/cart/src/bundle/Resources/views/themes/standard/cart/component/summary/summary.html.twig` |
31-
32-
3314
## Template customization example
3415

3516
As an example, to change the cart display when it contains no products, you need to override [`vendor/ibexa/storefront/src/bundle/Resources/views/themes/storefront/cart/component/maincart/maincart_empty_cart.html.twig`](https://github.com/ibexa/storefront/blob/main/src/bundle/Resources/views/themes/storefront/cart/component/maincart/maincart_empty_cart.html.twig) template.

0 commit comments

Comments
 (0)