When determining if an IEnumerable contains any objects, avoid Count() and instead use Any().
Author: Mark Ursino
Avoid return false in jQuery Click Bindings
The use of ‘return false’ in jQuery click bindings prevents JavaScript event bubbling. You can use event.preventDefault() instead to maintain event bubbling.
Tame Your Sitecore Treelists
The treelist field type is useful to select many items in a tiered structure, but the use of source parameters can help control what editors can see and select.
Storing Sitecore Media in the Database vs. the File System
Sitecore media assets can be stored in either the database or on the file system. This article covers the pros and cons of each approach.
Options For Querying Items from Sitecore
There are several options out there for developers to query Sitecore. Read on to figure out what is best for your queries depending on the size of your solution.
Filter a List to Unique Objects with a HashSet
The generic HashSet in C# allows for an easy way to filter a list to distinct objects with minimal coding.
Disable ASP.NET Web Service Test Pages
Follow this simple web.config tweak to disable the form on any web service ASMX test page.
All About Sitecore Renderings
This article is a general overview of Sitecore renderings. The general term “rendering” refers to several specific types of front-end components that developers can use.
Convert a List of BaseClass to a List of DerivedClass in C#
Its possible to convert a list of objects from narrower types to wider types and vice versa using the OfType extension method. This is useful for simple filtering.
Smooth Scrolling Links to the Top of the Page
Use this simple jQuery snippet to make smooth scrolling “go to top” links.