Skip to main content
251
results
Andrew Fletcher
Creating URL's in Drupal programmatically: Internal path use Drupal\Core\Link; use Drupal\Core\Url; $internal_link = Link::fromTextAndUrl(t('Drupal nodes'), Url::fromUri('internal:/node', $options))->toString();  External Url use Drupal\Core\Link; use Drupal\Core\Url; $external_link = Link::fromTextAndUrl(t('Codebales'), Url::fromUri('http://www.codebales.com/'))->toString();  Url with options use Drupal\Core\Link; use Drupal\Core\Url; $options = array( 'query' =>...
Andrew Fletcher
Working in Drupal 9.x, I was loading images via the Media module.  Below 1...
Andrew Fletcher
Have you tried to run a composer update script that...
Andrew Fletcher
Since upgrading to Drupal 9.3.0 have you come across this error? Edit...
Andrew Fletcher
Have you noticed through your Google account that there are items being indexed...
Andrew Fletcher
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how can you create the alias in a twig file?  In other words, instead of /taxonomy/term/{tid} I would like to get the alias I have defined for this, eg: /some/path/to/my/term. In trying to find an answer you might have queried your search criteria using something like twig canonical taxonomy path twig canonical entity path twig canonical node path  How to achieve This is achieved through using the...
Andrew Fletcher
In drupal 9 for logging you can use logger service to log array data...
Andrew Fletcher
It is really simple to switch users in Ubuntu or any other Linux distribution...
Andrew Fletcher
Adding Solr config zip (ie. solr_8.x_config.zip) to your remote...
Andrew Fletcher
  Z shell (Zsh) is a Unix shell built on top of bash (the default shell for...
Andrew Fletcher
Steps to get the Solr date range widget working.   Steps Enable the Facets Range Widget sub-module. Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder.  After playing with this for sometime to get it working, I found the best way to install is via composer. composer require "bower-asset/jquery-ui-slider-pips:^1.11"However, calling this command could produce the following error [InvalidArgumentException] ...
Andrew Fletcher
Following is a series of steps to install Tika and have it running for your Solr...
Andrew Fletcher
Working on an Azure server I ran a mysqldump command to generate a copy of the...
Andrew Fletcher
The migrate process saves the status of each running migration in the...
Andrew Fletcher
When attempting to backup mysql using the mysqldump command mysqldump -u root...