MVC3 - learning how to create super simple cms? [closed]
I have achieved a beginner skills in mvc3 and now want to try next level. I want to create a super simple CMS that has following features:
- Support extensible skinning, i.e. start with some default dynamic skin and when change database setting for skin name, it should work with the new skin / theme
- Dynamic pages loaded from database
- partial view I think that can show available pages from database
Can somebody开发者_如何转开发 point me on how to get started? I tried to look into source code of orchard, and couple of other popular cms in mvc3 but because of lots of code, I am not just getting it properly to get started with.
Thanks in advance.
Don't worry about what other people are doing at the moment..
If this is just a learning exercise then you should look at what you want to do and then look at how to achieve that...
So your reqs are:
Extensible skinning (like themes in say WP?) Dynamic pages An admin area to manage pages
I guess the first thing is to get your areas setup if you want to do it that way.. (add an area for the admin section).
see here -> http://msdn.microsoft.com/en-us/library/ee671793.aspx
or
here -> http://mvccoderouting.codeplex.com/ -> this way could mean no need to set up areas... more detail on the page.
For the dynamic pages you are probably going to do something with routing a default controller.
do you reference the pages by id in the url... or do you have a key that makes up part of the url? that's one design choice you will have to make.
精彩评论