developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
426
results
Andrew Fletcher
•
In this article, I'll show you how to review a newsletter's statistics for newsletters sent with Acy Mailing 5.
Access to Acy Mailing 5
This is screen accessible via the administration area: Select Components → Components → Acy Mailing 5 → Newsletters from the drop-down menus from the drop-down menus. Or you can select Components → Acy Mailing 5 → Statistics also from the drop-down menus.
View the...
Andrew Fletcher
•
In this article, you will learn how to send a newsletter using Acy...
Andrew Fletcher
•
In this article, I'll show you how to edit an unsent Acy Mailing 5...
Andrew Fletcher
•
I prefer htop over top on my Linux server. Running a Solr index got...
Andrew Fletcher
•
The generally accepted answer to a mysqldump is:
mysqldump -h [host] -u...
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
•
Wanting to create a new repository on GitHub, add in a few of the available...
Andrew Fletcher
•
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
•
I needed the check if a file existed in a directory as the migrate script wasn't...
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 from media entity id or rendered entity.
Or other variations you might have searched:
How to load existing media programmatically
How to get image file uri from media entity id
Call to a member function getFileUri()
drupal File::load getFileUri
drupal getFileUri
The steps to achieve this should be something like:
// get the file id
$fid = $entity->field_icon->target_id;
//...
Andrew Fletcher
•
I'm writing these steps primarily for myself as a reference. However, if...
Andrew Fletcher
•
Joining a new company / team there is always a lot of new items to...
Andrew Fletcher
•
Setting up a new project in Docker and VS Code.
Using Terminal, go to your...
Andrew Fletcher
•
Running Docker in a new process and creating a container.
Go to the...