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
•
Adding Solr config zip (ie. solr_8.x_config.zip) to your remote server. In this instance I'll be adding Solr config to a AWS EC2 server.
Log in to your remote server, then as you need to work as root type:
sudo suGo to your solr directory:
cd /var/solr/If you don't know the location of your solr directory run:
find / -name solr -type dYou can find more information about how to search on Terminal Commands Find.
Access your solr config directory through:
cd...
Andrew Fletcher
•
Following is a series of steps to install Tika and have it running for your Solr...
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
•
A recent attempt to run an update composer (regular activity for many of...
Andrew Fletcher
•
I was trying to create something quite simple. How to get image file uri...
Andrew Fletcher
•
I'm writing these steps primarily for myself as a reference. However, if...
Andrew Fletcher
•
Setting up a new project in Docker and VS Code.
Using Terminal, go to your Sites directory and create a new directory using the mkdir command. In this instance I'm going to create a new directory titled ADCE
shortcut command to access the Sites directory
cd ~/SitesCreate the new directory
mkdir ADCEGo in to the new directory
cd ADCERun the devcontainer command
devcontainerThis will require you to respond to prompts. I'll be setting up on PHP 7.4, Drupal 9, MySQL 5.7 and SOLR...
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...
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...