Google Tag

This project integrates the site with the Google Tag Manager (GTM) application. GTM allows you to deploy analytics and measurement tag configurations from a web-based user interface (hosted by Google) instead of requiring administrative access to your website.

To use the module, sign up for GTM and obtain a "container ID" for your website. For development purposes, create a GTM environment for your website.

vi global replace

To perform a global search and replace in vi, use the 'search and replace' command:

:%s/search_string/replacement_string/g

The %s is a shortcut that tells vi to search all lines of the file for search_string and change it to replacement_string. The global (g) flag at the end of the command tells vi to replace all instances of the search_string.

If you wish to confirm each replacement, add the confirm (c) flag after the global flag.

Devel Kint Extras

This module offers to display methods and statics available for an object when using Kint. It was created because the Devel module maintainers decided to remove the Kint plugins responsible for showing object available methods and static class properties in version 3.0 of the module (the relevant issue).

Devel

August 2022

  • A new Devel 5 is available. It is the recommended release for Drupal 9 and 10. The webprofiler submodule was moved from Devel to WebProfiler project
  • Devel 4 (and prior branches) are now minimally supported.

File (Field) Paths

Note, originally we wanted to use this with Media image and token: [node:content-type].  However, this is not possible as the media image is not limited to a specific content type.  However, in this case it does enable the 'media directories' module to be referenced by token.

The File (Field) Paths module extends the default functionality of Drupal's core File module, Image module and many other File upload modules, by adding the ability to use entity based tokens in destination paths and file names.

Media Directories

This module offers an alternative way to browse and use Medias. Initial UI is available (full featured jsTree directory browser experience) and enhances the Media experience.

It provides directory/folder structure for Media entities, after enabling, a new field will appear to Media entities, which will allow assigning them to folders.

File Rename

Very useful as often the originally uploaded files would benefit from being improved for SEO.

This module adds the ability to rename a file which was uploaded to the system.
It can be integrated in the media detail page.