My LocalGov Drupal contributions for November 2025
This month I focussed on fewer, but larger, issues. Let's see ...
Code Contributions
- You know the way the things in CK Editor look different to your frontend (e.g. heading styles, blockquotes, lists etc). Well, there's an easy way to fix that, but not so many people know about it. So I decided to add it by default to our subtheme generator.
- I got a nice update to the PR from last month to set the homepage by page id in the LocalGov Demo module.
- This month I plan on working on some of the larger, more complex issues such as getting Events using Finders closer to a stable release. I installed it, played with it, created some PRs and issues, and reviewed what's there so far.
- Created a PR to use the Teaser view mode for events listings.
- Created an MR to add an 'Add Finders Facet Type' link to have consistency with how Directory Facets work.
- Created an MR to add the same CSS and JS we have for directories to Finders.
- Created an MR to add the schema for finders facets processors.
- Created an MR to use the default localgov_events_date format for calendar dates.
- Our box links listing component is hardcoded to have either a single column of items or else a grid of items with 2 in each row. I now have a PR to allow options for 3 or 4 items in a row and a follow-up PR to reflect this in the LocalGov Base template.
- I got some preliminary - proof-of-concept - work done on the "Have different numbers of top tasks on service landing pages" issue.
- I love when I find a tiny issue with a simple fix, that's been there for ages but no one has noticed it. Here's a fix for when the media item is viewed on a small screen where the media item is on the right hand side (if it was viewed on a large screen).
- The body of our blog channels is printed in a sidebar as a summary of the blog you are reading. However, if we don't have anything in the body, we are still printing an empty
<aside>. But ... no more! - Whether you have a value in the summary field of a step-by-step page or not, we show the "Show summary" button in the navigation. Then even if there are no summaries at all, we still create and show a "Show all summaries" button. Thanks to James in Essex for finding this issue. I have a PR ready for it now.
- But that PR broke one of our tests, which took nearly half a day to fix. The good news is the test not passing showed up some brittle code (the test was failing for a reason not got to do with the test, which is why it took so long to track it down) which all got fixed in the one PR, so ... happy days!
- If you can write a test for it, write a test for it. Our LocalGov Topics module had no tests, but now has a full suite of them.
Course: Build a LocalGov Drupal Website
Subscribe to get updates about the course (and perhaps a discount code before it is launched).