Skip to main content
25
results
Andrew Fletcher
In Twig, the {% extends %} tag is used to inherit and extend the contents of another template. In the case you provided: {% extends "filed--text.html.twig" %}This means that the current template is extending the content of the template file named "filed--text.html.twig." The contents of the extended template will be used as a base, and the current template can override or add to specific blocks defined in the base template.   A breakdown of the elements {% extends "filed--text.html.twig" %}...
Andrew Fletcher
In Drupal Twig templates, you can set a variable like paragraph_parent to the...
Andrew Fletcher
Update Drupal to 10.1.x and I'm receiving the following...
Andrew Fletcher
Update Ubuntu 20.04 To begin update the server using the command sudo apt update...
Andrew Fletcher
Twig error Twig\Error\SyntaxError: Unknown "filter" tag. in...
Andrew Fletcher
This guide has been compiled as a reference tool on how to access field values for different field types. The Manage Display admin UI can change how a field’s label and content are displayed. When I want to show how to output just the Manage Display version of the content, I use the word ‘display’. When I’m talking about the more raw version of the content, I use ‘value’. I have used field_name as a placeholder machine name for each field. Replace it with your field’s machine name. You can...
Andrew Fletcher
Installing PHP on OSX and it installed PHP 8.2.x.  However, for my...
Andrew Fletcher
  JSON structure Outlining the structure of the elements common attributes:...
Andrew Fletcher
In this instance, I'll check the beginning of the string.  I want to focus...
Andrew Fletcher
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
To sort through a multidimensional array seems to be a function that I occasionally call on.  Handy to have referenced here: /** * Loop through a multi dimensional array * * @param array $haystack * Data array. */ protected function sortMultiDimensionalArray($haystack) { foreach ($haystack as $key => $item) { // If $item is an array and the number of children is greater to one // keep looping through the array. if (is_array($item) &&...
Andrew Fletcher
phpcs issue in Visual Studio Code, I'm receiving this warning in VS...
Andrew Fletcher
Had the situation where you are running composer however, the scripts stops with...
Andrew Fletcher
Oh the treasure of a client coming to you with a site they have removed the...
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do...