Profile

Cover photo
David Hayden
Lived in Sarasota
1,025 followers|186,510 views
AboutPostsPhotosVideos

Stream

David Hayden

Shared publicly  - 
 
I noticed a "bug" in Orchard.Layouts in Orchard CMS 1.9.2 with regard to creating new Layouts and then listing them in the Admin Dashboard. The Layout Content Type was not set to listable, which means layouts won't be displayed in a list. You need to set them to listable to solve this problem as I mention in my Orchard CMS Tutorial.

Hope this helps!

#orchard   #orchardcms   #cms   #webdev   #webdeveloper   #webdevelopment   #microsoft   #aspnet   #aspnetmvc  
Make the Layout Content Type Listable in Orchard CMS to see layouts in Admin Dashboard.
1
Add a comment...

David Hayden

Shared publicly  - 
 
Earlier I showed how to use dependency injection in ASP.NET 5 and ASP.NET MVC 6 using the built-in dependency injection container. In this ASP.NET 5 Tutorial I show how to use Autofac as the dependency injection container in ASP.NET 5 and ASP.NET MVC 6 Web Applications.

#aspnet5   #aspnetmvc6   #aspnet   #aspnetmvc   #autofac   #ioc   #dependencyinjection   #webdev   #webdevelopment   #webdeveloper   #microsoft  
1
Add a comment...

David Hayden

Shared publicly  - 
 
Using String Interpolation in C# 6 now as an alternative to "+" and string.format when doing string concatenation. Makes the code much easier to read as long as you don't get crazy with those expressions.

#csharp   #csharp6   #programming   #programmer   #microsoft   #webdev   #webdevelopment   #webdeveloper   #aspnet   #aspnet5   #aspnetmvc   #aspnetmvc6  
1
Add a comment...

David Hayden

Shared publicly  - 
 
C# 6 has new auto-property initializers, which make it really easy to declare an auto-implemented property in C# and assign it an initial value. Simple, yet elegant!

#csharp   #csharp6   #programming   #programmer   #microsoft   #webdev   #webdevelopment   #webdeveloper   #aspnet   #aspnet5
1
Add a comment...

David Hayden

Shared publicly  - 
 
So yeah... I can get a bit emotional when I find a cool feature in Orchard CMS. Working on a huge re-architecture of an old Orchard Website to Orchard CMS 1.9.2. I am using Dynamic Forms as a replacement to Custom Forms.

Got a bit nervous when I didn't see a reCAPTCHA Form Element under Forms when building my first dynamic form. Then I found the solution...

#orchardcms   #orchard   #cms   #dynamicforms   #antispam   #recaptcha   #captcha   #webdev   #webdeveloper   #webdevelopment   #microsoft  
1
Add a comment...

David Hayden

Shared publicly  - 
 
ASP.NET 5 has a radical new change with regard to its middleware pipeline. An empty ASP.NET 5 web application doesn't even support static files, default documents, and directory browsing, which is typically enabled by default.

in this ASP.NET 5 tutorial I just want to show how lightweight the middleware pipeline is in ASP.NET 5 and the steps necessary just to enable static files in your application. It's really dramatic if you think about it, but I really like the idea of staying barebones and having more control of what middleware and functionality gets added to my ASP.NET 5 web applications.

I think some ASP.NET web developers may be surprised by all of this, especially the webforms developers who are used to having everything available to their web applications, more visual development, and less configuration concerns.

I'll be diving into more advanced ASP.NET 5 tutorials, like building custom middleware, in the future.

#aspnet5   #aspnetmvc6   #aspnet   #aspnetmvc   #webdev   #webdevelopment   #webdeveloper   #microsoft   #middleware  
1
1
Reece Bradley's profile photo
Add a comment...
In his circles
4 people
Have him in circles
1,025 people
yenny ponce's profile photo
Greg Slagell's profile photo
Colors Matrimony's profile photo
Roberto Hernández's profile photo
Minko Minkov's profile photo
miguel antonio Castillo's profile photo
Никита Березин's profile photo
Thanh Nguyen's profile photo
Саша Бугир's profile photo

David Hayden

Shared publicly  - 
 
The new Null-Conditional Operator in C# 6 for helping with those null reference checks to avoid null-reference exceptions as well as for use with optional chaining. Pretty handy when used with the null coalescing operator in C#, too.

#csharp   #csharp6   #programming   #programmer   #microsoft   #webdev   #webdevelopment   #webdeveloper   #aspnet   #aspnetmvc  
1
Add a comment...

David Hayden

Shared publicly  - 
 
Extended Dynamic Forms in Orchard CMS to export dynamic forms data as a CSV File. The Import Export Module in Orchard CMS is useful, but it is just not as intuitive and easy to export form data as compared to a simple Export to CSV Button.

As an Orchard Web Developer this just needed to happen :)

#orchardcms   #orchard   #cms   #webdeveloper   #webdev   #webdevelopment   #microsoft   #aspnet   #aspnetmvc  
Custom module to export dynamic forms data as a CSV file in Orchard CMS.
1
Add a comment...

David Hayden

Shared publicly  - 
 
A quick blog post for other Microsoft .NET developers interested in learning how to get started using ASP.NET 5 Logging using Microsoft.Framework.Logging and Serilog to log events to a Rolling Log File.

It's almost like we are learning ASP.NET all over again with this radical change in the ASP.NET 5 Framework. Gotta love it!

#aspnet   #aspnet5   #logging   #serilog   #webdevelopment   #webdev   #webdeveloper   #dotnet   #aspnetmvc   #aspnetmvc6   #microsoft   #cms  
1
Add a comment...

David Hayden

Shared publicly  - 
 
Taught an Orchard CMS Class yesterday. One of the cool things I demonstrated was how to develop custom form elements for dynamic forms in Orchard CMS. In the class I demonstrated how to develop a custom slider form element as well as custom validators and binders to go along with it.

This was a seriously fun class to teach. Lots of really cool extensibility opportunities in both Dynamic Forms and Orchard Layouts as well as all the Orchard Modules in general. Since Dynamic Forms and Orchard Layouts are new to Orchard CMS 1.9, we did a lot more custom development for those modules.

Happy Halloween!

#orchardcms   #orchard   #cms   #webdevelopment   #webdev   #microsoft   #aspnet   #aspnetmvc   #dynamicforms  
1
Add a comment...

David Hayden

Shared publicly  - 
 
Absolutely love the simplicity of reading configuration files from ASP.NET 5 Web Applications. JSON Files seem to be the preferred method given their use by Visual Studio 2015, but there are extension methods to read in XML, INI, JSON, Environment Variables, etc.

One particularly cool practice is to inject your configuration settings as IOptions<T> in you various controllers, services, and views in an ASP.NET MVC 6 Web Application. This ability to add your configuration settings in your IoC Container in ASP.NET 5 and then inject them as dependencies is brilliant.

In this ASP.NET 5 Tutorial I show how to read a JSON file for your configuration settings, add them to the built-in IoC Container, and then inject those configuration settings into a ASP.NET MVC 6 controller and view!

#aspnet5   #aspnet   #aspnetmvc6   #aspnetmvc   #webdev   #webdevelopment   #webdeveloper   #microsoft
1
Add a comment...

David Hayden

Shared publicly  - 
 
In ASP.NET MVC 6 you can now inject dependencies into views using the new inject keyword!

#aspnet   #aspnetmvc   #aspnet5   #aspnetmvc6   #di   #dependencyinjection   #ioc   #inversionofcontrol   #webdev   #webdevelopment   #webdeveloper   #microsoft  
2
Add a comment...
People
In his circles
4 people
Have him in circles
1,025 people
yenny ponce's profile photo
Greg Slagell's profile photo
Colors Matrimony's profile photo
Roberto Hernández's profile photo
Minko Minkov's profile photo
miguel antonio Castillo's profile photo
Никита Березин's profile photo
Thanh Nguyen's profile photo
Саша Бугир's profile photo
Work
Occupation
Orchard CMS Developer
Basic Information
Gender
Male
Story
Tagline
Orchard CMS Developer
Introduction
I am an Orchard CMS Developer specializing in Orchard CMS websites, modules, widgets and themes.

My Orchard CMS skills and credentials include:

Bragging rights
Successful freelance developer for 15+ years.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Sarasota
Links
Contributor to