Websites

Drupal GitPod Container 1: .Dockerfile

GitPod is a great tool for cloud-based containers when developing. If you’re developing and want a safe and efficient cloud container to try things out, it’s a pretty good way to go. You even get 50 hours per month for free, which is pretty great if you only need occasional side project and not full-time work. It also works with Visual Studio Code – although that has not been working for me lately – so you can use it in the browser or in your desktop editor. When you browse to a or repository with the extension installed, there’s a simple button that will launch the container with that repository’s code, making it quick and easy to see how it works as well as make changes.

In this mini-series I describe how I created a generic Drupal-friendly container working with GitPod. It is available in my GitHub. Note that since is some code I may continue using over time, the code there may change beyond what is covered in this article.

Continue Reading Drupal GitPod Container 1: .Dockerfile

Drupal 7: Hide Label on Node Display

I ran into a problem on an old Drupal 7 site where labels for a custom field were displaying, even when there was no content associated with that field, creating a page that was simply a series of headers in a row. That’s not very user-friendly.

If I wanted to always hide the label for a field, that’s easy enough in the default Drupal display settings for the content type. But what about this scenario where we want to show the label when there is content and hide the label when there isn’t content?

Continue Reading Drupal 7: Hide Label on Node Display

Mail Tester

A common scenario with many web services like a CRM is sending mail and realizing that it is often going to the junk of recipients.

There are several reasons why a message may go to spam. Some of those reasons come from the content of the message. Some are because of filters set up by the recipient or their email provider. And some factors come down to technical configuration on the part of the sender.

Continue Reading Mail Tester

Windows 10: Hosts File

Configuring a hosts file on your computer allows your browsing traffic to go to a different server than is listed by public DNS. This can be essential for a few scenarios, such as:

  1. migrating a site to a new server and needing to test it before changing the public DNS
  2. development on dev/staging servers which do not have public DNS listings
Continue Reading Windows 10: Hosts File

Koa11y: Accessibility Testing Tool

Koa11y is another useful website development tool I came across recently. It is a downloadable desktop app that can be used to test out a website’s . It is not the most user-friendly app – not as intuitive as the WAVE extension in your browser, for example – but a web developer should have no problem sorting out a few extra steps. Most importantly, it did return more detailed issues with the website I first tested against compared to WAVE, which can be valuable information to fix as many accessibility issues as possible.

Continue Reading Koa11y: Accessibility Testing Tool

Visual Studio Code: Grep

This is a quick post about a feature I discovered by accident in that I really like:

I was working in a Linux machine and ran a grep in the integrated terminal to find a particular piece of code. The terminal gave me the results in the usual way, with the file names highlighted, the line in the code, and a bit of the code around what I searched for. Then I happened to scroll over the file name in the results and it showed me a tooltip offering that I could open the file by holding Ctrl and clicking on the path.

Continue Reading Visual Studio Code: Grep