Posts in Csharp
How to create a custom IContentFinder to use as a custom 404 Page Not Found handler in Umbraco that works when you have a multi-domain site that requires different 404 pages for each site (such as a multilingual website).
If you're an ASP.NET developer then sooner or later you will come across an occasion when you want to manipulate or parse values from the current request's querystring. To make this easier I developed a small C# library that enables developers to easily manipulate the querystring collection.
This post explains how you can create C# extension methods to make querying Umbraco's IPublishedContent more intuitive and seamless. It also includes some examples of methods I commonly use in my projects.
In this post I want to show you how to automatically generate an XML (Google) sitemap for an Umbraco CMS site. The code uses the Umbraco API, Linq To XML and a generic .ashx hander to do this in one small file.
Diplo Trace Log Viewer is an Umbraco developer plugin that allows you to easily select and view the contents of the trace log files that Umbraco generates. The control also allows you to search, order and filter log events (e.g. you may only wish to view Errors or Warnings) - all from within Umbraco 6 or Umbraco 7.
In my previous post I told you how you can easily index uCommerce products (in Umbraco) using the Lucene text search engine. But indexing products is only half the story - you also need to be able to search those products too! In this post I'll show you how to write a simple Razor script to search your index and return the most relevant results