Skip to main content
161
results
Andrew Fletcher
You can create a new date/time format by navigating to: Admin -> Configuration -> Regional and Language -> Date and Time format and click on 'Add Format'. Once you’ve created date format, you can control the way date is displayed on the node using preprocess function. In {theme_name}.theme file, add the following lines /** * Implements hook_preprocess_node */ function THEME_NAME_preprocess_node(&$variables) { // Getting the node creation time stamp from the node object. $date...
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...
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 AWS server... I was greeted with the white screen of death.  While it took me a while to resolve the actual issue, my action plan was as follows:   How to resolve: Look in your log files; Add a few lines to your index.php file   Log files If you have access via ssh they are usually located in /var/log.  To quickly which files have been updated / altered recently, run the following command when...
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...
Andrew Fletcher
Time is essential to all of us... and if you are like me there is never enough of it!  Anyway, the amount of time to read a piece of content can persuade someone whether to read on further... or swipe it away.  When on the verge of flipping an article as the title and /or teaser text hasn't got me across the line, the time to read is a handy reference for me.  This handy feature is becoming more common across any decent article publisher. So how do you add this feature to...
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....
Andrew Fletcher
The purple warning notification of annoyance recently came my way!  I...