-
In OrchardCore 2.1.5+, how can I execute a specific recipe from a theme module at the same time as switching themes? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Perhaps you can try implementing
|
Beta Was this translation helpful? Give feedback.
-
@weirdyang's answer is correct if you want to execute a recipe literally when switching themes, i.e. any time you switch themes. If you only want to execute a recipe once, when initially enabling the theme, then you can use the simpler recipe migrations approach: https://docs.orchardcore.net/en/latest/reference/modules/Recipes/#recipe-migrations |
Beta Was this translation helpful? Give feedback.
-
Thanks. |
Beta Was this translation helpful? Give feedback.
Perhaps you can try implementing
ModularTenantEvents
and in this service, import the recipes from a folder eg.