Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link and fix grammar #1158

Merged
merged 2 commits into from
Nov 6, 2023
Merged
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
4 changes: 2 additions & 2 deletions guides/plugins/apps/storefront/apps-as-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav:

# Apps as themes

It is absolutely possible to ship whole [themes](../../themes/) inside an app. All you have to do is include your theme configuration \(in the form of a `theme.json` file\) inside your apps Resources folder.
It is absolutely possible to ship whole [themes](../../themes/) inside an app. All you have to do is include your theme configuration \(in the form of a [theme.json](../../../plugins/themes/theme-configuration) file\) inside your app's Resources folder.
So the folder structure of a theme may look like this:

```text
Expand All @@ -24,4 +24,4 @@ If your app provides a `theme.json` file, it is considered to be a theme. All th

## Migrating existing themes

If you already created Shopware 6 themes via plugins, it is effortless to migrate them to the app system. Don't worry - you don't have to do all work twice. Instead of providing a `composer.json` and plugin base class, provide a `manifest.xml` file with the metadata for your app. After you created a new folder for your app and added the `manifest.xml`, you can copy the `YourThemePlugin/src/Resources` folder from your plugin to the `YourThemeApp/Resources` folder inside your app. It should not be necessary to change anything inside your template or Javascript code at all.
If you have already created Shopware 6 themes via plugins, it is effortless to migrate them to the app system. Don't worry, you don't have to do all the work twice. Instead of providing a `composer.json` and plugin base class, provide a `manifest.xml` file with the metadata for your app. After you have created a new folder for your app and added the `manifest.xml`, you can copy the `YourThemePlugin/src/Resources` folder from your plugin to the `YourThemeApp/Resources` folder inside your app. It should not be necessary to change anything inside your template or Javascript code.
Loading