OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.44k stars 2.4k forks source link

Development of Dynamic Form in Orchard Core CMS #5923

Closed gaurav151299 closed 4 years ago

gaurav151299 commented 4 years ago

Dear Team, I am very new in OrchardCore and want some help. I want to create a input form for storing the record in database. In my form there is three input fields (Name, Mobile, Feedback) and i want to store the data in user defined table not in predefined tables of OrchardCore. Kindly suggest us a better way to implement this feature.

Piedone commented 4 years ago

You can just implement the form fully in code pretty much as in standard ASP.NET Core MVC and then you have control over everything, including how it is stored. Or would you utilize Orchard's Flow Part to build an admin-editable form?

gaurav151299 commented 4 years ago

dear @Piedone, can you provide an example to implement standard ASP.NET Core MVC with OrchardCore.

infofromca commented 4 years ago

for db, see IndexingTaskManager, change IndexingTask to your table, also ref migration for table in db. for ASP.NET Core MVC with OrchardCore, there are 2 sample projects, one is OrchardCore.Cms.Web , also search on google

dodyg commented 4 years ago

@gaurav151299 try this https://github.com/OrchardCMS/OrchardCore.Samples