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
168
results
Andrew Fletcher
•
If you edit a Drupal contrib module, the next time the module is updated those edits will be wiped. So they are not lost there are a couple of options for you to consider:
Are the edits worth the contributing to the community? Yes, you can fork the repo and add the changes for the developer(s) to review; or
Create a patch file
Creating a patch file
The process:
Add the files you want to see in the diff. Remembering to only add untracked files.
git stash && git...
Andrew Fletcher
•
As a web developer, you will most likely need to run local copies of a bunch of...
Andrew Fletcher
•
The cache system in Drupal 9 delivers the API with the elements required for...
Andrew Fletcher
•
How to get the current user or load a user using a uid value.
$current_user =...
Andrew Fletcher
•
Running a few SEO and performance tests and I discovered that the site logo...
Andrew Fletcher
•
How do you exclude the current node from a list view?
In some situations, for example a block listing nodes related to the node being viewed, you might wish to exclude the current node from a list view.
Steps:
Click on the advanced tab;
Click on add under contextual filters;
Choose Content datasource: ID;
Under "when the filter variable is not available, choose provide default value;
From the drop down menu select content id from url;
Scroll down to the bottom of the window and click on...
Andrew Fletcher
•
I installed Lando 3.6.2 and Laravel 9. When I visit the web page, I...
Andrew Fletcher
•
I'm receiving an error with a path of Drupal\path_alias\AliasManager
Upgrading...
Andrew Fletcher
•
Let say in composer.json you have
"drupal/core-recommended": "^9.2" You're...
Andrew Fletcher
•
Getting Started with Cocoapods
Installation
Built with Ruby, Cocopods is...
Andrew Fletcher
•
Have you tried adding custom synonyms to Solr on Drupal?
How did you go?
What do you need to do to connect a custom synonym list to your Solr?
Set-up : the tools
What am I using?
Search API Synonym- https://www.drupal.org/project/search_api_synonym
Solr : 8.1
Steps to get a custom Solr working
Install Search API Synonym
Read through the instructions on the module page or have a look at the following article
Setting up synonyms on your Drupal site with a few errors you might...
Andrew Fletcher
•
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function:...
Andrew Fletcher
•
Running Docker
Dangerous word... I'm assuming that Docker is installed....
Andrew Fletcher
•
Is Docker installed?
Check if your installation is ok and spin up Docker as...
Andrew Fletcher
•
Create and push to Docker Hub
Creating your own custom image... you need to have...