Drupal, Gatsby, Next and friends
Gatsby and Next are both based on React and become more and more adopted, far beyond the Drupal sphere.
Choosing a decoupled solution comes with a resource cost though (budget, team-wise), and might not be the right fit for every project. Working with these solutions is still time well invested.
A minimal Drupal 9 local development environment
We will see how to get a minimal and fast Drupal 9 setup in 3 commands.
It just relies on a PHP built-in server, so no Docker here, the only requirements are Composer and PHP.
Then, we will do a recap of the available tools for developers.
Synonyms with Search API
Here is a really simple way to handle synonyms (or extra keywords) using Search API out of the box with a database server and no custom code involved. Use case: we want to do a full text search based on synonyms that does not appear on the frontend. These ones should be set from the Tags vocabulary. The method should be flexible regarding translations, available for content editors and easily generalizable.
Drupal Earth, lift-off 🚀
The planet Drupal has now some data visualization based on Three.js an D3.js for the following questions: where are the Drupal peeps, how are they contributing, which languages are they talking, what are they working on?
Get the answers on https://drupalearth.org
Extract tokens from a Drupal database dump
While working on migrations from Drupal 7 to 8 it could be necessary to convert tokens from formatted text fields + get an idea of how many of them are in the database for estimation, e.g. to see if it is possible to rely on Token Filter or if there are custom tokens/filters.
Get local Instagram api credentials with Ngrok
It can be long to find the way through the documentation for these simple steps, so here is a shortcut.
Go to https://www.instagram.com/developer/clients/manage/ and get a Client ID and Client Secret.
Â
- Start a local server
php -S localhost:8000
Â
- Start Ngrok and get the forwarding url
(e.g. http://my.ngrok.io)./ngrok http 8000
Â
Migrate from a CSV to content entities with Paragraphs
This article will explain how to use migration templates with a CSV that contains the Paragraphs data on several lines.
Reuse readme.md in hook_help() with Parsedown
Here is a pretty simple way to maintain the hook_help() of a Drupal project, straight from the readme file.
Markdown is preferred here to .txt so it can be reused on a GitHub, GitLab, ... repository as well.
FOSDEM 2019, PHP and JS random picks
Gathering here a few topics that were shared about PHP and JS in the devrooms: forms UX, profiling, webhooks, async PHP, JS data structures, Cypress.io, GraphQL testing and OpenStreetMap with VR.