Sitecore

Using Data Source in Controller Renderings – Sitecore

Data source for Sitecore component provide data points to be used in the components, such as controller renderings or view renderings. Content author can easily edit those data points (e.g. header title, body text or CSS style) to customise components. It is one of the techniques to make Sitecore component …

Sitecore

Styling Folder Template in Content Tree – Sitecore

Creating a visual reference for Sitecore items is important for content authors as well as developers. The recommended practice (or I would say mandatory) for creating an template is to assign a distinguishable icon for easier visual reference. If you know this trick, you can go one step further to …

Sitecore

Configuring Multiple Sites with Sitecore

Sitecore has the out-of-box capability to host multiple sites from a single installation. Enabling multi sites is relatively straight forward. Sitecore decides the site context based on the incoming URL and three site attributes, hostName, virtualFolder and physicalFolder. A unique site in Sitecore is defined by hostName and those folder …

Sitecore

Sitecore PowerShell Extensions Installation Hangs on Spinning Wheel – Sitecore 8.2

Sitecore PowerShell Extensions is a powerful Sitecore development tool to manage Sitecore contents, create automation jobs and do a tons of cool stuff. It brings the PowerShell scripting capabilities to deliver Sitecore solutions faster. It also has a lot of out of box tools that doesn’t require PowerShell scripting skills. …

Sitecore

Could not create controller with Constructor on type not found exception – Sitecore 8.2

When your controller rendering is failing with Could not create controller along with the inner exception,Constructor on type (your constructor name, e.g Sitecore.Feature.Controllers.MediaController)  not found, there is something wrong with the actual controller code. Could not create controller error has a few different reasons. Another common reason is the inner …

Sitecore

Program does not contain a static ‘Main’ method suitable for an entry point – Sitecore 8.2

When you set up a visual studio project for Sitecore, you need to set Output type to Class Library. If it is set to Windows Application or Console Application, you need to change it to Class Library. Otherwise you get a build error below. error CS5001: Program does not contain …

Sitecore

An unhandled exception occurred Rendering Controller Error – Sitecore 8.2

This error is an interesting one because there are a few different reasons. My case was not what the error actually says. Error in Experience Editor Error Rendering Controller: SitecoreDev.Feature.Media.Controllers.MediaController, SitecoreDev.Feature.Media. Action: HeroSlider: An unhandled exception occurred. at Sitecore.Mvc.Pipelines.MvcEvents.Exception.ShowAspNetErrorMessage.ShowErrorMessage(ExceptionContext exceptionContext, ExceptionArgs args) at Sitecore.Mvc.Pipelines.MvcEvents.Exception.ShowAspNetErrorMessage.Process(ExceptionArgs args) at (Object , Object[] ) …

Sitecore

Resolving Could not find configuration node for Core Database Error – Sitecore 8.2

Resolving Could not find configuration node for Core Database Error – Sitecore 8.2 Web.config file is minimal when you initially create ASP.NET project. When you install Sitecore, the config file is already in the web root folder and we don’t want to override it when publishing it first time. It …

Sitecore

Could not create controller Error for Controller Renderings – Sitecore 8.2

ASP.NET standard controller action routing is {controller}/{action} (see here). When you create a new project, you will see this in RouteConfig.cs file in the App_Start folder. Sitecore has overridden this standard route registration procedures. Routing to controller and action can be determined by the controller rendering component. This makes sense …

Sitecore

How to resolve Could not load file or assembly System.Web.Mvc Error – Sitecore 8.2

When I refactored an existing Sitecore 8.2 project into the Helix structure, I had a server error in ‘/’ application when I first tried to get into the sitecore admin console. This type of error is usually simple to fix. It means the version of dll in the bin folder …