[RESOLVED]CMS on ASP.NET MVC

I write CMS on ASP.NET MVC 5. I need to give the user a choice of functionality, which he wants to add in the admin (news/forums etc, one module can be in multiple copies). How best to implement it in ASP.NET MVC 5?

Not sure I thoroughly understood your question.

wkololo_4ever

I need to give the user a choice of functionality, which he wants to add in the admin

You can have a configuration database table and in that specify what modules user has permission. Based on that you should be able to show the modules

wkololo_4ever

I write CMS on ASP.NET MVC 5

As you know there are several open source CMS projects. Have you considered them. Just curious :)

pprasannak

As you know there are several open source CMS projects. Have you considered them. Just curious :)

I found only on asp.net form CMS.

pprasannak

You can have a configuration database table and in that specify what modules user has permission. Based on that you should be able to show the modules

Hard to explain, but I need something like the possibility to dynamically select the controller. I mean, for example, the administrator selects the "news module" and indicates the URL, to which should be the module. And the same module can be in multiple
copies in different URL.

Based on your description you want a map a url with a controller. As you know in MVC this is the work of a router. You need to develop a route constraint, route catch all or route handler. Please take a look at these posts

Customizing
Routes in ASP.NET
MVC

MvcRouteHandler and
MvcHandler in ASP.NET
MVC

Leave a Reply