Skip to main content

Drupal

Migrate Process Remote Image Check

Submitted by daniel on

This module provides a Migrate process plugin to enable you to check whether a migrated remote image url/string is in fact a valid address for a media asset such as an image. It does this by requesting each image and see if it returns a valid response.

If this fails, it will attempt to remove any query string to that has been appended to an image to see if removing this helps to generate a successful response.

If the response is not ok, it will fallback to using an empty string so as to avoid any exceptions when trying to migrate the remote image asset.

Date Created

Views Ticker Type Text

Submitted by daniel on

This Drupal module provides a Views Style Plugin to enable you to use a Ticker Type Effect with any custom view when using the drupal/views module. This allows you to easily configure the various options depending on your requirements.

More info

Views Ticker Type_Text

Date Created

Style Guide (admin)

Submitted by daniel on

Style Guide Admin is a simple module that enables developers to easily create and preview a style guide for any custom Drupal theme from the admin appearance menu. This has been designed and developed to be used with any custom Drupal theme.

Date Created

Prevent Drupal Scaffolding overriding development services when working with Drupal

Submitted by daniel on

When working on Drupal it is often useful to change your local development.services.yml to enable certain development features and make debugging your application easier.

e.g. This is basically taken from default.services.yml file with certain parameters changed to provide a more friendly development environment, depending on what you are working on. This can be adjusted to suit but hopefully will give you an idea. Notice how this gives us the ability to override various parameters and services to suit.

Running Drupal's PHP Unit tests with Headless Chrome Image and ddev

Submitted by daniel on

In a previous article I have looked at running Drupal's Nightwatch and PHPUnit Tests using Drupal's Quickstart development environment. Today, I will look at how to run all the the PHP Unit Tests using a headless version of chrome.

Setting up Headless Chrome Image

Within your project root within the .ddev folder create a new YAML file and call it docker-compose.chromedriver.yaml

Correct Settings for running Drupal with Plesk and nginx

Submitted by daniel on

I recently realised that I was getting some strange behaviour when running Drupal X on Plesk Obsidian, when set to use PHP is run by and FPM application served with with nginx, such as the index.php showing on links and navigation items. Turns out I needed to add some additional configuration to get this working correctly.

This is a wip but hopefully provides some reference for my self and other who want to configure Drupal correctly when hosting on a Plesk server.