The heartbeat of the Orchard CMS community: blog posts from Orchard-related blogs, scraped automatically.

Blog Posts

  • Adding Google Analytics to Orchard

    8/23/2017 7:00:00 AM

    Google Analytics can show you all kinds of funky stuff about who's viewing your website, what they're viewing and how they're mooching from page to page, and it's very easy to add to your site as Google supply a tiny bit of JavaScript that you need to add to your pages. This bit of JavaScript will look something like this:

  • Improving performance of rendering content items with taxonomies attached

    8/22/2017 6:18:42 PM

    If you are using taxonomies but not displaying them in your summary shapes for example, Orchard will still need to load all the related data because it (un)helpfully adds an alternate to the Content shape to allow you to customize it based on the taxonomy terms associated with the content item. So on pages with a significant number of items being displayed, it can add quite a lot of additional redundant database calls as linked taxonomies are lazily loaded. If you aren't using this feature at all, you can just comment it out. The relevant code is in Orchard.Taxonomies.Shapes.cs:

  • Making the PJS.Bootstrap theme work with Orchard 1.10.x

    8/21/2017 6:18:00 AM

    The PJS.Bootstrap theme, along with several other themes and modules doesn't work when combined with Orchard 1.10.x, with the orchard-debug-YYYY-MM-DD.log files generated in ~/App_Data/Logs containing errors along the lines of:

  • Retrieving the balance_transaction object when creating a charge in Stripe

    8/10/2017 3:03:57 PM

    When making a post request to Stripe's REST api to create a charge, we needed to return information in the balance_transaction object. Stripe offers the ability to expand properties so you don't have to make an additional request to their api for more information, which is cool. To expand a property you add it to the request parameter expand[]. But when making a post request (e.g. creating a charge), I had to wrap it in square brackets like so: [expand][]. Here is a quick example written in C#.

  • Creating an Instagram layout element for Orchard CMS

    7/22/2017 7:54:00 PM

    A sweet feature in orchard is the layouts module, that lets you create complex page layouts from a drag and drop editor. It had also been well thought out with little extras. One is the ability to create layout elements, complete with configuration options, by simply creating the display shape in your theme. Let's give it a whirl.

  • Sending JSON from a WebRequest workflow activity in Orchard CMS

    7/12/2017 8:36:49 PM

    An option for the web request workflow activity is to post your data as JSON. Cool. Unfortunately, due to how orchard evaluates tokens prior to the workflow activity execution, the JSON you enter will be lost. A question on stack overflow brought this issue up, and since I have nothing else to pollute the blogosphere with I'm just rehashing my answer on here.

  • A more user friendly payment model for consuming online content

    7/10/2017 5:36:31 AM

    I subscribe to two news site and support several podcasts via patreon, which I'm happy to do. But as more and more content creators jump to pick up subscribers by hiding content behind subscription models, I find I just cant support them all. Obviously. And frankly, I don't want to subscribe to sites where I may read one or two articles a month. I also reckon there are a whole lot of people in the same boat as me. We have a couple of sites we religiously trawl. And a host of sites we open links to then get blocked and leave. What if they offered the option not to subscribe, but to pay for individual articles. Their arguments are probably that this isn't quite as lucrative an arrangement as subscriptions people forget to cancel but it's a whole lot better than no subscriptions at all. They also may complain that such small transaction fees are pointless when whichever payment provider they choose to use (PayPal etc.) take a hefty cut. But I have answer for that too. I gave this idea a mighty five minutes of thought. Five minutes more than most of my thoughts. Pay five dollars and get credit to read 10 articles. Yay for credits.

  • Sending money with Santander's Android App fails randomly while abroad

    7/10/2017 5:32:43 AM

    In the Santander UK android application, I've recently run into some issues sending money, receiving a message telling me to call my branch. But then I'd try again later and it would work. Random. Actually it wasn't random, just poor handling of timezones and even poorer error handling. I can't actually claim credit for discovering the issue, it was my girlfriend who clocked onto it.

  • Storing JSON in an Orchard workflow activity

    7/9/2017 7:28:57 PM

    When Orchard executes a workflow activity, it evaluates any tokens stored in the data for that activity before sending it to the activity. Because JSON is recognised as a token by Orchard (both use curly braces!), Orchard will attempt to evaluate it, fail and replace it with an empty string. So in your activity, you will have nothing!

Send us new blog feeds

Noticed that a blog's feed is missing from the list? 

We would love to add that to the feed list, so please don't hesitate to inform us on the following e-mail adress:

guys@lombiq.com