Skip to main content
143
results
Andrew Fletcher
phpcs issue in Visual Studio Code, I'm receiving this warning in VS Code: phpcs: Unable to locate phpcs. Please add phpcs to your global path or use composer decency manager to install it in your project locally.  How to fix You can install phpcs by using composer global command: composer global require squizlabs/php_codesnifferThen in VS Code, go to  Click Code -> Preferences -> Settings Select User Settings and locate 'PHP CodeSniffer', or in the Search settings enter...
Andrew Fletcher
Attempting to update the database, irrespective whether I run update.php or...
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do...
Andrew Fletcher
If you edit a Drupal contrib module, the next time the module is updated those...
Andrew Fletcher
As a web developer, you will most likely need to run local copies of a bunch of...
Andrew Fletcher
The cache system in Drupal 9 delivers the API with the elements required for creation, storage and invalidation of cached data.  Drupal is structured so initially data is stored in the database.  Whereas, files are stored in the following directories: sites/default/files/css sites/default/files/js sites/default/files/phpFocusing on database storage, from a performance perspective the default cache is managed via the admin interface admin/config/development/performanceOn this page,...
Andrew Fletcher
How to get the current user or load a user using a uid value. $current_user =...
Andrew Fletcher
Running a few SEO and performance tests and I discovered that the site logo...
Andrew Fletcher
How do you exclude the current node from a list view? In some situations, for...
Andrew Fletcher
I'm receiving an error with a path of Drupal\path_alias\AliasManager Upgrading...
Andrew Fletcher
Let say in composer.json you have "drupal/core-recommended": "^9.2" You're attempting to run composer update "drupal/core-*" --with-all-dependencies...to update to the latest 9.2.x version. Yet instead you are finding 9.3.6 installed. How do you use caret version constraint for core-recommended?  Caret means "any compatible version" which as of today is version 9.3.  However, if you want to stay on 9.2 you use a 9.2.* version constraint. Minor updates only introduce...
Andrew Fletcher
Have you tried adding custom synonyms to Solr on Drupal? How did you go? What do...
Andrew Fletcher
Running Docker Dangerous word... I'm assuming that Docker is installed....
Andrew Fletcher
Is Docker installed? Check if your installation is ok and spin up Docker as...
Andrew Fletcher
Create and push to Docker Hub Creating your own custom image... you need to have...