Skip to main content
52
results
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do the set up in a custom module or using your theme file. To be able to create a node alias in a twig file you need to know the node.nid value.  Obviously without it you have nothing to reference from.  In this example, the node.nid value is extracted during a loop.  A fairly standard loop such as {% for row in rows %} // ... script doing some magic ... // {% endfor %}Begin by setting the nid value...
Andrew Fletcher
If you edit a Drupal contrib module, the next time the module is updated those...
Andrew Fletcher
Changing git push from passphrase?  There are several ways to tackle this...
Andrew Fletcher
Having access to a site’s URL in your templates can come in handy for many...
Andrew Fletcher
I want to create a content type that has a paragraph.  Easy enough. What...
Andrew Fletcher
Working in Drupal 9.x, I was loading images via the Media module.  Below 1 mb no issue.  Any thing over - nothing.  Nothing as in no response when loading. An interesting situation, as I had already changed the php.ini file where the following updates occured: ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize = 2MHad changed to  upload_max_filesize = 10MAlso the post max size ; is disabled through...
Andrew Fletcher
Since upgrading to Drupal 9.3.0 have you come across this error? Edit...
Andrew Fletcher
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how...
Andrew Fletcher
Working in Twig, I had to add classes to a pre-existing array.  Whilst I've...
Andrew Fletcher
Working in Laravel, I needed to loop through an array and know whether the...
Andrew Fletcher
When you are in the status report of the admin area are you finding the following issue: ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were detected in the entity type and field definitions. File The File type field needs to be installed. Paragraph The Published field needs to be updated. The Behavior settings field needs to be updated.Check whether you have the module file_entity.  As File Entity has mostly been installed in to the...
Andrew Fletcher
The magically descriptive error 401 Forbidden "message": "Access...
Andrew Fletcher
If you are like me you probably have searched for clues to and found little......
Andrew Fletcher
How to apply a gradient tint over a background image? Set the background...
Andrew Fletcher
Working on formatting the date in Xcode, and you come across the situation where...