developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
157
results
Andrew Fletcher
•
Following is a series of steps to install Tika and have it running for your Solr Search API Attachments.
Java is it running on your server
To begin you must have Java installed on your server/machine. To check if Java is installed use the command
java -versionPerforming the above command will output something similar to:
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed...
Andrew Fletcher
•
The migrate process saves the status of each running migration in the...
Andrew Fletcher
•
You can create a new date/time format by navigating to:
Admin ->...
Andrew Fletcher
•
To assist in finding possible solutions some of the queries that I made...
Andrew Fletcher
•
Creating a message log using Drupal watchdog.
Simple log
// Logs a...
Andrew Fletcher
•
Working in Twig, I had to add classes to a pre-existing array. Whilst I've grown used to the patterns in PHP, these cannot be applied in Twig. Instead I had to merge the new array elements.
Non associative arrays
Working from a base level, I'll begin as if the original array hasn't been set. The merge filter expects as first argument an array whose content will be merged with the assigned variable:
{% set myArray = [] %}
{% set myArray = myArray|merge(['tw-flex-inline'])...
Andrew Fletcher
•
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
•
I was trying to create something quite simple. How to get image file uri...
Andrew Fletcher
•
Setting up a new project in Docker and VS Code.
Using Terminal, go to your...
Andrew Fletcher
•
Load testing verifies the system performance under the expected peak load....
Andrew Fletcher
•
A bug bear that I have had for a while with Drupal content is how come the author of an article is actually their username. I have an array of reasons to vent my dislike for this strategy... however, instead I will show you how to change it. Albeit, programmatically! Don't stress there actually isn't a huge amount of code to add. In time I'll create a module so no coding is required.
Setting up account fields in the admin area
To begin let's add new fields for...
Andrew Fletcher
•
Time is essential to all of us... and if you are like me there is never enough...
Andrew Fletcher
•
Updating Drupal from 8.7.10 to 8.8.x or 8.9.x has seen a significant change...
Andrew Fletcher
•
As outlined in an earlier article composer php version, when installing the...
Andrew Fletcher
•
Blocks are a great way to add pieces or chunks of content to your Drupal site....