Skip to main content
165
results
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
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 ->...
Andrew Fletcher
To assist in finding possible solutions some of the queries that I made include: Drupal 9 pager with items_per_page Drupal 9 pager merged with exposed form items_per_page   I wanted to resolve this issue through the theme file rather than in a custom module.  While most of the time my preference is to create a custom module, the project I'm working at the moment we are working to minimal or no custom modules.  Subsequently, solutions need to be managed via theme...
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
Wanting to create a new repository on GitHub, add in a few of the available...
Andrew Fletcher
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
I was trying to create something quite simple.  How to get image file uri from media entity id or rendered entity.  Or other variations you might have searched: How to load existing media programmatically How to get image file uri from media entity id Call to a member function getFileUri()  drupal File::load getFileUri  drupal getFileUri   The steps to achieve this should be something like: // get the file id ​​​​​​​$fid = $entity->field_icon->target_id; //...
Andrew Fletcher
Setting up a new project in Docker and VS Code. Using Terminal, go to your...
Andrew Fletcher
Running Docker in a new process and creating a container.   Go to the...
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...