Skip to main content
153
results
Andrew Fletcher
Have you noticed through your Google account that there are items being indexed that shouldn't have been?   One for me was taxonomy terms.  Not important to be followed. Being indexed on my sitemap (do I just erase those entries on the XML file?) Being crawled (I am guessing this is with a robots.txt file though I have never created one before) Being viewed (stumbled upon) -> if this even possible to block?   Resolve these quickly by simply adding disallow in robots.txt...
Andrew Fletcher
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how...
Andrew Fletcher
In drupal 9 for logging you can use logger service to log array data...
Andrew Fletcher
Adding Solr config zip (ie. solr_8.x_config.zip) to your remote...
Andrew Fletcher
Following is a series of steps to install Tika and have it running for your Solr...
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
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
A recent attempt to run an update composer (regular activity for many of us), I had a memory limit issue.  This was surprising because the memory setting via Plesk is set to 2G.  Yet through Terminal it was showing only 128MB.  What gives??   The error I was seeing: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/lib64/plesk-9.0/composer.phar/src/Composer/DependencyResolver/Pool.php on line...
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...