StartupBaseor through taking dependencies in your module manifest. You can adjust your log level to Debug to see the default load order of things, by looking at the order in which migrations run
I've been trying to override the
Form.Wrapper.cshtml in the
OrchardCore.Forms module, but I can't seem to find the proper location to place my override within my module. Things I've tried include:
The location of the wrapper within the OrchardCore.Forms module is Views/Form.Wrapper.cshtml, so if I'm understanding the docs here https://docs.orchardcore.net/en/dev/docs/reference/modules/Templates/#overriding-views and here https://docs.orchardcore.net/en/dev/docs/reference/modules/Widgets/#customizing-the-widget_wrapper-template, one of the above paths should have worked?
RequireFeaturesallows a module to contribute to services/pipeline to other feature without depending on it
OrchardCore.Feedsis activated it doesn't activate
OrchardCore.Contentis active, then activating
OrchardCore.Feedswill also has services/pipeline related to content management
If your module has dependency of "OrchardCore.Forms" in manifest .cs then you can override using Views/Form.Wrapper.cshtml
So this set me off on the right direction. If I create that file in another one of my modules, it works fine, but in the module that the file belongs in, it refuses to work. Both modules show up in the features section in the orchard admin, and work fine otherwise. Both modules also have
OrchardCore.Forms listed as a dependency, and both are listed as projectReferences in the csproj for the startup project. Any suggestions for me to try?
System.InvalidOperationExceptionbeing thrown in my debug output, but I can't find out why my module's recipe is failing (or if it even is the recipe). It's also weird that when enabling the feature, it is enabled but doesn't even report that there were exceptions. I couldn't find a logging feature either.