Skip to main content
102
results
Andrew Fletcher
Working in Laravel, I needed to loop through an array and know whether the current loop was odd or even row.  To do this add the expression to your Twig file: {% set direction = loop.index0 is odd ? 'left' : 'right' %}In the call above, the variable direction is set to either left or right depending on the value of the position of the loop row (loop.index0).  I then used the left or right value in a div class adding to a series of tailwind css definitions.  Such...
Andrew Fletcher
I need to set the default php-version of a subscription to php7.3.  The...
Andrew Fletcher
Setting up the mail configuration in October CMS is a quick progress....
Andrew Fletcher
Don't worry this is an issue that many Drupal developers have come across....
Andrew Fletcher
Working on a new CentOS 7 server, Node wasn't installed.  You can...
Andrew Fletcher
Using a Centos 6 or 7 server, how to check the current version of Apache? httpd -vThis command will return a string that is similar to the following: Server version: Apache/2.4.6 (CentOS) Server built:   Nov 16 2020 16:18:20If you want to find where the httpd binaries are located use the following: whereis httpdThis command will return something like: httpd: /usr/sbin/httpd.worker /usr/sbin/httpd.event /usr/sbin/httpd /etc/httpd /usr/lib64/httpd ...
Andrew Fletcher
Attempting to load changes in a staging site and the bountiful error page...
Andrew Fletcher
Working through migration on a new Centos 7 server, the default mailbox size is...
Andrew Fletcher
Running a common composer command, post an upgrade on the server to Centos 7 and...
Andrew Fletcher
I'm receiving a server not found when logging in to Plesk from shell or...
Andrew Fletcher
This page shows a growing list of common commands for viewing and managing your Centos server. ls syntax $ ls [options] [file|dir] ls command main options: ls -a list all files including hidden file starting with '.' ls --color colored list [=always/never/auto] ls -d list directories - with ' */' ls -F add one char of */=>@| to enteries ls -i list file's inode index number ls -l list with long format - show permissions ls -la list long format including hidden files ls...
Andrew Fletcher
Whilst updating nodejs and npm on a Centos 6 or 7 server running Apache, I...
Andrew Fletcher
For what reason would you need to find the identity of the current user? You are...
Andrew Fletcher
I started out with a simple task... install Tailwindcss.  What unfolded is...
Andrew Fletcher
Blocks are a great way to add pieces or chunks of content to your Drupal site....