BS Blog

BS - Dev Blog

Welcome to the BS (my initials) Blog.

Latest Posts:

Default Image

Country Flag output for Drupal

2025-08-06

Recently I needed to output flag icons for country selections on a Drupal site. There's a few modules out there, but all have a lot of dependencies and are using images when really this is supported out...

Read more...

Trimming the Fat: Three Simple Ways to Reduce Code in Drupal

2025-07-09

Drupal, a powerful content management system, can sometimes feel a bit bloated. But fear not, fellow developers, for we have a few tricks up our sleeves to streamline your code and make it as lean as...

Read more...
Default Image

Lazy Like a Drupal Service: Avoiding Unnecessary Baggage on Your Website

2024-02-08

Imagine your website loaded down with unused services, like a pack mule carrying bricks it only needs on Tuesdays. That's where Lazy services in Drupal come in, your website's personal whipping boy, getting...

Read more...

JMeter - Test Random Sitemap URLs

2022-09-15

While doing some load-tests recently, I had the need to be able to mimic some crawler traffic on a large site. Something that might hit atypical URLs from time to time and not just the top pages.

Read more...

Drupal 8 / 9 - Programatically Change Field Widgets

2022-01-05

Recently I had a client who had the need to allow users to create content, but have varying levels of access to certain fields.

Read more...