Sometimes we use the Sitecore class called UpdateHelper to install packages on different Sitecore instances for example via a webservice. Today I copied some code from a Sitecore 7.2 installation which did exactly this. It is a simple service class that installs a package from a path and then it logs the installation results as […]
Month: October 2014
How to create a custom cache in Sitecore
When coding a Sitecore solution you sometimes need a cache to store some values. I’ve seen a lot of different cache implementations in Sitecore solutions that do not use the Sitecore API. Such an implementation could for example use a static or perhaps a singleton some even go further and use a custom database or a nosql […]
Sending emails in Sitecore
Sometimes you need to send an email from your Sitecore code. I’ve seen a ton of solution implementations where the developer have written some custom class that sends out emails using a SMTP client, good old classic ASP.NET. I myself even wrote code for that in Sitecore solutions some years ago. That was before I noticed the […]
Matching Wildcards in Sitecore
While reading this nice blog post by my colleague Uli about resolving a Sitecore SiteContext from an URI I noticed that he used a regex to match a hostname using * as a wildcard That made me remember the Sitecore class called Sitecore.Text.WildcardParser. I once wrote a blog post about this class but I never got around to […]
Customizing Sitecore rich text field configuration
People often ask me questions on how to configure the Sitecore rich text editor in various ways. The Sitecore rich text editor is really easy to control and customize and there are already a lot of blog posts about it out there. Most of these posts only show how to create custom editor profiles and not how to […]
Sitecore SPEAK v1.2 goodies
This post show some of the new goodies we Sitecore developers get when working with Sitecore SPEAK 1.2 and Sitecore Rocks compared with the previous version of SPEAK. Strongly typed View Model In SPEAK 1.1 there was a lot of plumbing work you had to do almost all over the place. In your cshtml view you first […]
Setting up a Sitecore SPEAK project in Visual Studio
Lately I’ve been asked a lot of questions on how to setup a project in Visual Studio for custom Sitecore SPEAK components. Here are some common issues and solutions. First issue – Creating the Visual Studio project with correct references First create a .NET 4.5.x C# ASP.NET Web Application in your Visual Studio solution. In this example I place […]
Global.asax events and Sitecore pipelines
At Pentia we always try not to change any files that ships in an out-of-the-box Sitecore installation. This makes upgrading easier and the solution code more transparent for developers. Sitecore ships with a standard Global.asax file and a lot of Sitecore developers choose to make changes directly in this to hook into application and session level events. For […]
Insert Sitecore related content directly into the RTE
What I want to achieve with this post is give the editors the possibility of inserting related content from other pages into their current Rich Text Editor. They could insert related content from some selected fields in another pages or render some spots so that they would present a page somewhat like this : I am still working on […]