Orchard Web Developer - Microsoft ASP.NET MVC CMS

Orchard CMS Tutorials
Orchard Websites, Modules, Widgets, and Themes

  • David Hayden - Orchard Web Developer
  • Orchard CMS Developer
  • David Hayden - Orchard Samples and Tutorials
React.js Meditation Timer

React.js Meditation Timer

Enjoying yoga class this morning when the conversation turned to mindfulness meditation and what iPhone app people use for a meditation timer. As a proud Dad I grab my iPhone and with a big grin show off a React.js web app my daughter and I built some time ago. There are plenty of great meditation timers on the App Store, but it's always more fun to use an app I built myself.

read more



Parameterized Snippets in Orchard CMS

Parameterized Snippets in Orchard CMS

Orchard CMS 1.10 was just released and it offers a new feature called Parameterized Snippets for Orchard Layouts. Parameterized Snippets provide an easy method for including user data for Snippets in your Orchard Layouts. Parameterized Snippets also save you the burden of developing an Element for Orchard Layouts when you don't have any complex logic or external dependencies and only need the ability to add user data to the snippet. Parameterized Snippets are definitely a welcome sight and help bridge the large gap that was initially between Snippets and Elements in Orchard Layouts.

read more



Snipcart and Orchard CMS for E-Commerce

Snipcart and Orchard CMS for E-Commerce

While working on an e-commerce store using Orchard CMS for a client I came across Snipcart. Snipcart is an HTML / JavaScript shopping cart that is very easy to add to any website, including static websites. At first I thought Snipcart's claims of being easy were too good to be true, but after integrating Snipcart into Orchard CMS I quickly became a fan.

read more



Make Layout Content Type Listable in Orchard CMS

Make Layout Content Type Listable in Orchard CMS

There is a small "bug" in Orchard.Layouts in Orchard CMS 1.9.2 that doesn't allow you to see your layouts via the Admin Dashboard after you create them. If you create a new Layout in Orchard CMS and then click the Layouts Link on the Admin Menu nothing will display. They will not display in a list ( i.e. not listable ).

read more



Null-Conditional Operator in C# 6

Null-Conditional Operator in C# 6

I've already mentioned a couple new features in C# 6: Auto-Property Initializers and String Interpolation. Another new feature introduced in C# 6 is the null-conditional operator, which helps us avoid verbose null reference checks and offers optional chaining.

read more



ASP.NET 5 Dependency Injection with Autofac

ASP.NET 5 Dependency Injection with Autofac

Earlier I wrote a blog post on ASP.NET MVC 6 Dependency Injection, which showed how to use dependency injection in ASP.NET 5 and ASP.NET MVC 6 web applications using the built-in dependency injection container. In this ASP.NET 5 Tutorial I will show how to use that same example using a more feature-rich dependency injection container called Autofac. If you are unfamiliar with dependency injection in ASP.NET 5 and ASP.NET MVC 6, please read the other tutotial first as well as the tutorial ASP.NET MVC 6 view injection.

read more



Export Dynamic Forms Data to CSV File in Orchard CMS

Export Dynamic Forms Data to CSV File in Orchard CMS

Dynamic Forms in Orchard CMS is a wonderful new feature, but using the Import Export Module to export dynamic forms data can be intimidating to clients. It feels so much more intuitive and powerful to just go to the dynamic form submissions and click on an Export to CSV Button. As an Orchard Developer I created such a button and feature, because exporting this information as a CSV file is pretty important to clients. In most cases they want to get that data as a CSV file to use in Microsoft Excel, SQL Server, or some other tool, and they want to do it easily.

read more



C# 6 String Interpolation

C# 6 String Interpolation

String Interpolation is a new feature in C# 6. It's a nice alternative to string cocatenation using "+" or string.format. One can now use expressions within strings and specify you are using string interpolation by prefixing the string with a $ symbol.

read more



ASP.NET 5 Logging using Serilog and Rolling Log File

ASP.NET 5 Logging using Serilog and Rolling Log File

I thought I would post an example of logging in ASP.NET 5 with Serilog using a Rolling Log File. You can certainly use other logging frameworks, like NLog or Log4Net, and they will work approximately the same. Microsoft.Framework.Logging is mainly an abstraction to use with logging and you can use whatever logging frameworks you want in your ASP.NET 5 and ASP.NET MVC 6 Web Applications.

read more



C# 6 Auto-Property Initializers

C# 6 Auto-Property Initializers

C# 6 includes auto-property initializers, which are a handy way to set initial property values on auto-implemented properties. Auto-property initializers are basically a shortcut to setting the property value in the constructor. I wasn't overly excited about the new feature at first, but I think it makes the intention a lot more clear when you see the initial value on the same line as the auto-implemented property.

read more