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
151
results
Andrew Fletcher
•
To add ejabberd and run MYSQL to the server I needed to update the server version of mysql from 5.5 to 5.7. Fortunately, there are great instructions on the Plesk support page regarding how to achieve this outcome.
https://support.plesk.com/hc/en-us/articles/213403429-How-to-upgrade-MySQL-5-5-to-5-6-5-7-or-MariaDB-5-5-to-10-0-10-1-10-2-on-Linux
As a point of reference, as I worked through the steps... step 10 you need to restart the MYSQL server. This is a quick progress by...
Andrew Fletcher
•
Blocks are a great way to add pieces or chunks of content to your Drupal site....
Andrew Fletcher
•
Adding an image via RESTUI can be done in a snap... once you know how! I...
Andrew Fletcher
•
When you are in the status report of the admin area are you finding the...
Andrew Fletcher
•
The magically descriptive error 401 Forbidden "message": "Access...
Andrew Fletcher
•
Loading the node
To query the node, I prefer to create a series of functions to mange the process in a class. However, keeping this simple, this can be achieved through:
$node = \Drupal\node\Entity\Node::load($nid);Otherwise if you require to load multiple nodes, where the list of node.nids is in an array.
$nodes = \Drupal::entityTypeManager()->getStorage('node');
$this->list = $nodes->loadMultiple($this->nids);
Whereas, if you are looking to query the node database for...
Andrew Fletcher
•
If you are like me you probably have searched for clues to and found little......
Andrew Fletcher
•
Registering a user via REST is an important process particularly when the...
Andrew Fletcher
•
As a process I apply patches locally first, then using git upload the update(s)...
Andrew Fletcher
•
While the Drupal site has a great outline of the steps to follow, I found we...
Andrew Fletcher
•
First transfer the drupal-8.8.x.tar.gz file to your directory
Via your ssh program (for us Terminal on OSX), enter the path to the directory where you transferred the drupal-8.8.x file
gunzip -c drupal-8.8.0.tar.gz | tar xopf -
rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0.tar.gz
rm -rf /var/www/vhosts/example.com/subdir/core
; rm -rf /var/www/vhosts/example.com/subdir/modules
; rm -rf /var/www/vhosts/example.com/subdir/profiles
; rm -rf...
Andrew Fletcher
•
The starting point is to read through and follow the notes outlined on the...
Andrew Fletcher
•
While I have posted an article about how to POST an image using REST in Drupal...
Andrew Fletcher
•
In Drupal 8.x hiding the subject line is a quick task.
In the admin area of your...
Andrew Fletcher
•
You have been working hard on getting comments being added (POST) through REST...