drupal

Talking Drupal: Talking Drupal #424 - Web Sustainability Guidelines

Today we are talking about the Web Sustainability Guidelines, How sustainability applies to the web, and how your website can be more sustainable with guests Mike Gifford and Andy Blum. We’ll also cover LB Plus as our module of the week.

For show notes visit: www.talkingDrupal.com/424

Topics
  • What are the Web sustainability guidelines
  • Do they only apply to environmental impact
  • When we think about sustainability we think of funding, does WSG speak to that
  • Why are the WSG important
  • What is the best way to implement WSG
  • How do the WSG’s apply to Drupal
  • Have the WSG’s been finalized
  • Are they open source
  • How can someone get involved
Resources Guests

Mike Gifford - mgifford.medium.com @mgifford

Hosts

Nic Laflin - nLighteneddevelopment.com nicxvan John Picozzi - epam.com johnpicozzi Melissa Bent - linkedin.com/in/melissabent merauluka

MOTW Correspondent

Martin Anderson-Clutz - @mandclu Layout Builder Plus

  • Brief description:
    • Have you ever wanted to make Layout Builder easier and more intuitive for content creators? There are a few modules that can help with that, but today we’re going to talk about one called Layout Builder Plus
  • Brief history
    • How old: Originally created in Apr 2022
    • Versions available: 2.0.1 release, compatible with Drupal 10 and 11
  • Maintainership
    • Actively maintained, latest release just a week ago
    • Number of open issues: 2, both bugs, but both marked as fixed
  • Usage stats:
    • 9 sites
  • Maintainer(s):
    • Tim Bozeman of Tag1
  • Module features and usage
    • Provides an overhaul of the Layout Builder UI, to make it easier for content creators:
    • Show a curated list of promoted blocks with icons, with lesser-used blocks available in a separate tab
    • Once a block is placed it shows automatically generated content, instead of asking the user to fill out a form before they can see what it will look like
    • Editing the content of a block happens in an overlay instead of the settings tray, so it can use more of the screen
    • Moves the Save Layout and other action buttons to the bottom of the page
    • Also adds some nice capabilities to Layout Builder, including:
    • Drag and drop entire sections
    • Change the layout of an existing section, even if it has blocks in it
    • Clone and update existing blocks
    • Finally, it includes a submodule to integrate with the Section Library module, which allows for a section within a layout to be saved so it can be reused again and again
    • I’ll also note that this is a module nominated by one of our listeners in the #talkingdrupal channel of the Drupal slack workspace, so if there’s a module you’d like to hear about in this segment, drop us a note in there

#! code: Drupal 10: Running Drupal Tests On GitHub Using Workflows

There are a number of different tools that allow you to validate and test a Drupal site. Inspecting your custom code allows you to adhere to coding standards and ensure that you stamp our common coding problems. Adding tests allows you to make certain that the functionality of your Drupal site works correctly.

If you have tests in your Drupal project then you ideally need to be running them at some point in your development workflow. Getting GitHub to run the tests when you push code or create a pull request means that you can have peace of mind that your test suite is being run at some point in workflow. You also want to allow your tests to be run locally with ease, without having to remember lots of command line arguments.

In this article I will show how to set up validation and tests against a Drupal site and how to get GitHub to run these steps when you create a pull request. This assumes you have a Drupal 10 project that is controlled via composer.

Let's start with creating a runner using Makefile.

Makefile

A Makefile is an automation tool that allows developers to create a dependency structure of tasks that is then run by using the "make" command. This file format was original developed to assist with compiling complex projects, but it can easily be used to perform any automation script you need.

For example, let's say that we want to allow a command to be run that has a number of different parameters. This might be a curl command or even an rsync command, where the order of the parameters are absolutely critical. To do this you would create a file called "Makefile" and add the following.

sync-files: rsync -avzh source/directory destination/directory

To run this you just need to type "make" followed by the name of the command.

Read more

Acquia Developer Portal Blog: 10 Drush Commands for Acquia CMS

Image removed.

Drush - The "drush" command is very useful for accessing and manipulating your website's settings and data from the command line.

If you are new to Drush, you might find the large number of commands available overwhelming and not know which ones to start with.

1. watchdog-show (ws)- Show a listing of most recent 10 log messages.

drush watchdog-show

2. pm-list (pml)- Show a list of available extensions (modules and themes )

Acquia Developer Portal Blog: Try Drupal Automatic Updates today on your site!

Image removed.

Did you know that Automatic Updates are in the works for Drupal 9/10 as a contributed module?

The module applies patch-level updates to Drupal core in a separate, sandboxed copy of your site, to keep you up and running until the update is completely ready to be deployed. It can detect and report problems at every stage of the update process, so you don't have to find out about them after an update is live. It automatically detects database updates in an incoming update, and helps you run them during the process.

Acquia Developer Portal Blog: Image Optimization in Acquia Cloud

Image removed.

Optimizing the images on your website is crucial for performance, and in turn, User Experience, SEO, and more generally, the success of your site. The good news is that the Acquia Cloud Platform has built-in capabilities to help your site serve great-looking images that load quickly.

Let's break down the steps needed to put these capabilities to use:

  1. Use the Built-in Utilities