Need directions and advice for mixing content with Razor pages. #9846
Unanswered
DrHeinzDoofenshmirtz
asked this question in
Q&A
Replies: 1 comment 4 replies
-
There are different ways, you can store your data in OC. You can create tenant aware tables and use apis provided in OC is multi-tenant - modular framework so it's best to organize your application in modules and make it tenant aware. To use it CMS as backend in decoupled site start with following . |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone.
I have been exploring CMS solutions for .Net Core and Orchard Core seems like one of the best free options.
Though, I have some questions, as I find the data model of Orchard to be quite confusing, and I can't seem to figure out, if I can do what I want in Orchard in an easy way. I imagine the Decoupled architecture makes the most sense.
Basically, the minimum I want is just an external place where I can edit the text in my Razor pages. So that every time I have to edit a Razor page's text, I don't have to do a new deploy. Furthermore, I would like some good Localization functionality on top of that. And as I also myself create some articles to explain the concepts of my website, that is also a good reason to use a CMS.
That is really what I need. The rest I can do in Razor pages.
The site also has some custom functionality, and I will use the idea of a wishlist site to explain.
Users can create wishlists that will be stored in a database with a reference to their user id.
When the user accesses the route "/wishlists" a table or list is shown with the names of they wishlists, with options to edit them, create a new one, etc.
The table is easy enough to create in a Razor page, as it is simply a loop over the user's wishlists.
If I also had some text on this page, let's say:
...
TEXT
WISHLIST TABLE
TEXT
...
How would I go ahead making this in Orchard Core?
Is the wishlist table a Widget? And if so, how do I create a Widget that gets its code from a Razor page?
How can I mix content from an Orchard Core page with content from a Razor page?
I hope you can put me on the right track. Thanks.
Best
Matthias
Beta Was this translation helpful? Give feedback.
All reactions