Sitecore allows you to add controllers to an item, this is specified in the Controller and Action fields of the Sitecore item: However this limits you to a single action on the controller, in this post I will look at one solution to allow multiple actions. Firstly we have to decide how we are going [...]
Sitecore allows you to add controllers to an item, this is specified in the Controller and Action fields of the Sitecore item: However this limits you to a single action on the controller, in this post I will look at one solution to allow multiple actions. Firstly we have to decide how we are going [...]
I held the first trial session of Online Group Programming yesterday with Dan Solovay. Dan lives in America and I live in the UK so this was a true test of global paired programming, we also hadn’t meet before this session. We decided to look at trying to take the Sitecore Data project forward. This [...]
The new Sitecore MVC solution allows you to associate a controller with an item, below you can see that I have attached a controller to my Home item: My controller is very simple: public class TestController : SitecoreController { public override System.Web.Mvc.ActionResult Index() { return View(“Index”); } } And the view: @inherits System.Web.Mvc.WebViewPage @using System.Web.Mvc.Html [...]
In the first blog in the series I looked at how you could create a commenting component that you could associate with any item in Sitecore. In this post we will look at how we can use IOC to create the controller and inject the services it needs, to do this I will be using [...]
Thanks for reading my blog. If you are interested in Sitecore you might also like my open source project Glass.Sitecore.Mapper at www.glass.lu