Creating a Custom Layout Element in Orchard

Let’s face it the new layouts / dynamic forms feature that was released with Orchard 1.9 is pretty awesome! It allows users to easily create page layouts using grids and add elements to these grids by simply dragging and dropping. It works great with all the CSS grid frameworks that are out there with minimal effort (including my favorite, Bootstrap) .

Out of the box there are plenty of elements including things like HTML, Text, and Media, but what if you need something more than that? Well, for something not out of the box, you will need to write a custom element. This tutorial will show you how to do that by creating an element that pulls the latest posts from Reddit.

Continue Reading…