Skip to content
Discussion options

You must be logged in to vote

Awesome that you found Orchard!

I assume you've seen the decoupled docs page; if not, I suggest you start there.

You don't need to call MapRazorPages() because that already happens within Orchard. Otherwise, Razor Pages should work exactly the same how they do outside of an Orchard Core-using app.

What happens if you just try OnPost()?

Yes, you can also add controllers. For Razor Pages, usually you'd add all files into the root web project (under the Pages folder/namespace), and you can similarly add MVC controllers to it. You can also do that in a module indeed. Adding a Manifest file and a package reference to OrchardCore.Module.Targets will make a project into a module, what then you c…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@rwxzig
Comment options

@rwxzig
Comment options

@Piedone
Comment options

Answer selected by rwxzig
Comment options

You must be logged in to vote
1 reply
@rwxzig
Comment options

Comment options

You must be logged in to vote
1 reply
@hishamco
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants