BS Blog

BS Blog - Drupal

All posts relating to Drupal.

Latest Drupal 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...

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...
Default Image

Config Readonly + Blocks (Drupal 8/9)

2021-11-15

If you currently don't use Config Readonly to protect config changes on Production, then either get on it or get outta here and stop wasting my bandwidth, jerk.

Read more...