Cannot combine contains and other logical tests Annoyance: This doesn’t work: Solution: You have to nest your conditionals — first check the contains, then make your other checks Type Casting Liquid is loosely typed, which usually makes things simple, if sometimes unpredictable. Annoyance: you don’t need to declare a variable as a string or integer, […]
A couple of years ago, I wrote about how to create breadcrumbs for products that would mirror the main menu of a Shopify site. In reality, that was a quick and dirty method that I had to quickly update a month later, but never got around to writing up the better version. As I noted […]
Are you tired of having dates in WordPress permalinks? I’ve been working on two sites lately where events tend to come back around every year. But if the URL has a date in it, that’s confusing to the visitor and will hurt click-through in Google. In both cases, we wanted to switch to a simple […]
I know. You’re here because you’re sure you’re missing something. You can’t figure out how to create multi-dimensional and associative arrays in Shopify. Sadly, you’re not missing something. In fact, while you can access multi-dimensional arrays just fine, you can’t assign values to them. Similarly you can access objects with named members that have values […]
I wanted to publish a blog post today about using Shopify menus to drive hierarchical breadcrumbs. Then I realized that, as near as I can tell, there is nobody who has a syntax highlighter for Liquid, the templating language that Shopify uses. So I created one. This is an pre-pre-alpha experimental plugin, but it’s working […]
Shopify breadcrumbs can be hard because there’s no way to organize them by default and Shopify has no way to establish a parent-child relationship between collections. But you can use your menu structure to create just such a relationship to build intelligent breadcrumbs. Here’s how!
We struggled for a long time to find a system for managing our vacation rental that did not involve pain and suffering. By combining Streak, Zapier and Google Apps, we finally found something that works for us much better than Quickbooks or other systems. It’s not for everyone, but it might be for you.
Drupal 8 is going to bring some huge changes. Fortunately, Netbeans is ready with support for Symfony, Twig and composer built in and available addons for SASS, Drupal development and, of course, a full-featured IDE.
Drupal has so many modules to choose from. This article divides some of the main spam-blocking modules by type and gives a brief overview that will hopefully give you an alternative that works for you without annoying your users with a CAPTCHA (Down with CAPTCHA!)
A discussion about trailing slashes on URLs for “listing” pages got me thinking about what a URL is and should be. Yeah, this post is a bit obsessive.