Challenge:
Before few months back. I started delving in to Sitecore MVC. Before that I knew basics of it. But no hands on. As I was busy with launching other site. Initially when I searched I found the lot of articles and blogs which scared me! You too?! Google can give you results. But which are best and which are not. You can find it out either trying or finding out other folks who already tried and provide good articles. So, while working I took some notes and I promised my self that once I am done I will share with you. So, you may get benefited out of it.
Sounds interesting? You are also searching for something like that? Then go ahead..!
Solution:
As per my practice. I started understanding ASP.NET MVC. Because i always believe in starting from basics. And following links helped me to do so:
- http://www.asp.net/mvc/overview/getting-started/recommended-resources-for-mvc
- http://www.asp.net/mvc/videos/pluralsight-aspnet-mvc-5-fundamentals
- https://mva.microsoft.com/en-US/training-courses/introduction-to-asp-net-mvc-8322?l=nKZwZ8Zy_3504984382
- http://www.w3schools.com/aspnet/mvc_intro.asp
- http://www.asp.net/mvc/overview/getting-started/mvc-learning-sequence
- https://msdn.microsoft.com/en-us/library/dd381612%28v=vs.100%29.aspx
- https://msdn.microsoft.com/en-us/library/dd381412%28v=vs.100%29.aspx
Then moved to Sitecore MVC:
- http://www.sitecore.net/learn/blogs/business-blogs/technical-trends/posts/2012/06/mvc-and-sitecore-651-overview.aspx
- http://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2015/02/how-is-sitecore-mvc-different-from-aspnet-mvc.aspx
- https://sdn.sitecore.net/upload/sitecore7/72/sitecore_mvc_developer_guide_72-a4.pdf
- http://sitecore-community.github.io/docs/sitecore-mvc/
- http://sitecore-community.github.io/docs/sitecore-mvc/creating-project/
- http://www.joe-stevens.com/2014/08/17/sitecore-mvc-tutorial-creating-your-first-sitecore-mvc-website/
- https://github.com/Sitecore-Community/sample-sitecore-mvc
I liked following excerpt from Lars – Especially RCMV and this diagram!
In my opinion, MVC is well suited for web sites with application functionality (e.g. HTML 5 applications).
Okay, enough theory. I know you developers! We need some action now. So, thought to look for some quick start application tried lot of things. But few things were out dates or not properly documented. Finally Martina’s video helped me to give a hands on. I strongly recommend you to follow exercise given in tutorial. It will give you good hands on experience. Which will boost your confidence and clarify your concepts a lot!
I faced some challenges in quick start. But life is NULL without challenge. And your best learnings come out of a challenging situation only. Here are few blog posts helped me to come out of it:
- http://sitecoreskills.blogspot.in/2014/06/preparing-sitecore-72-and-mvc-in-visual.html
- http://www.seanholmesby.com/fixing-visual-studio-intellisense-in-sitecore-mvc-views/ – Especially for Intellisense
- If you are using Project and Webroot model then make sure you copy web.config from Sitecore root to project
- Make sure Sitecore.MVC is there in reference
- Sitecore.MVC and Sitecore.Kernel – Is Copy Local true
- Or final resort copy all webroot/bin assemblies to project/bin
- http://stackoverflow.com/questions/24147846/system-web-webpages-html-htmlhelper-does-not-contain-a-definition-for-sitecor/24152053#24152053
MVC is fun! It is like Maths — Once you understand it. You would like to do it again and again!
Further reading:
- http://blog.alen.pw/2012/08/learning-sitecore-mvc-part-1.html
- http://blog.alen.pw/2012/08/learning-sitecore-mvc-part-2.html
- http://www.matthewdresser.com/sitecore/moving-to-sitecore-mvc
- http://techitpro.com/sitecore-mvc/http://www.dotnet-tricks.com/Tutorial/mvc/a9P1010113-MVC-Areas-with-example.html
- http://www.codeproject.com/Articles/714356/Areas-in-ASP-NET-MVC
- https://community.sitecore.net/developers/f/8/t/108s
- https://sitecore.unic.com/2015/06/24/the-sitecore-mvc-puzzle
- https://github.com/Sitecore-Community/sample-sitecore-mvc
Have I missed something? Where are your MVC notes? Would you like to share it with others?
Happy Learning!
Filed under: Latest, Sitecore, Tips and Tricks Tagged: MVC
