Unable to register custom Controllers and Views in decoupled CMS setup (2.1.7) #17921
Unanswered
adrianocroce22
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Just add your controller like we did in normal ASP.NET Core apps, then you can decorate it with the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I'm working with Orchard Core 2.1.7 and trying to build a decoupled CMS setup, where Orchard handles content/backend and I provide a custom frontend using my own MVC controllers and Razor views.
My setup is based on the standard OrchardCore.Application.Cms.Core.Targets package.
Here’s my Program.cs:
And this is my .csproj:
Expected
I'd like to be able to:
Add my own frontend MVC controllers and views
Let Orchard handle the admin/backend (on /admin)
Serve frontend pages like /, /about, etc. using my own controller/view logic
Is there an additional step or configuration required to enable MVC routing in a decoupled Orchard CMS project?
Thanks in advance for your help 🙏
Beta Was this translation helpful? Give feedback.
All reactions