Skip to main content
27
results
Andrew Fletcher
Listen in on the ports being used on your server.  To do so, run the command netstat -a | grep tcpIf netstat is not install, then you'll be prompted to run the install script sudo apt install net-toolsResponse Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: net-tools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 196 kB of archives. After this operation, 864 kB of...
Andrew Fletcher
Error with Nginx When running an Nginx test, the following response was being...
Andrew Fletcher
  JSON structure Outlining the structure of the elements common attributes:...
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do...
Andrew Fletcher
Running Docker Dangerous word... I'm assuming that Docker is installed....
Andrew Fletcher
Having access to a site’s URL in your templates can come in handy for many different use cases, such as determining if your on the admin/people page as apposed to admin/reports/dblog or admin/content.  These three pages might seem to bear on common relationship, however there is at least one.  Users. I edited the user in the admin/people page so rather than showing just username, know shows: Firstname Lastname Email Username However, in making this change I discovered that when on...
Andrew Fletcher
I want to create a content type that has a paragraph.  Easy enough. What...
Andrew Fletcher
Working in Drupal 9.x, I was loading images via the Media module.  Below 1...
Andrew Fletcher
Since upgrading to Drupal 9.3.0 have you come across this error? Edit...
Andrew Fletcher
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how...
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
Working in Laravel, I needed to loop through an array and know whether the...