Using Resource files in MVC 5

If like us you are using resource files in MVC5 and switch on language in the Url: i.e http://mydomain/en-GB From RouteConfig.cs: routes.MapRoute( "DefaultLocalized", "{language}-{culture}/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = string.Empty, // defaults to en-GB language = "en", culture = "GB" }); You…

Sitecore 8, Octopack, .Sitecore.Speak.Important.config not included.

If you use octopus deploy you may find it doesn't add /App_Config/Include/.Sitecore.Speak.Important.config to the nuget package. To resolve simply add /p:OctoPackNuGetArguments=-NoDefaultExcludes to your MSBUILD step. Without .Sitecore.Speak.Important.config SPEAK won't work (your will get an error in the console that…

The one hour Sitecore upgrade (or downgrade) with Unicorn

What?! An Alternative to the upgrade wizard? Go home! I was recently asked to update a solution from version 7.5 to version 8 Update 3 (the latest version at the time of writing). I did this in less than an hour. Next week if we wanted to, in theory…

Sitecore MVC Ajax POST to Controller

There are a few good posts that deal with posting data to a controller in Sitecore MVC. (See here.) However I couldn't find much to do with AJAX. If you want to make an AJAX post to a Sitecore Controller use the following code: $(function () { $(".my-action-invoker").click(function () { var my-data…

Sitecore keyboard shortcuts (hotkeys) chrome extension

View on Chrome Web Store I use some of my free time to dabble in areas of web development that I don't really get exposed to 9 to 5:30. After playing with mobile apps (check out Ionic framework it is fantastic) a colleague of mine, Jack Fillbrook, inspired me…

Friendly names for presentation details renderings/sublayouts

The Page editor is no doubt superb however some people (not just developers believe it or not) prefer to build up pages of renderings/sublayouts using the Device Edtior (via the Presentation Details popup) from the Content Editor. Does this not really bug you though? I mean, what are all…