Skip to main content
36
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
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...
Andrew Fletcher
Creating a bash script Bash scripts are files containing code that tell your computer to do something.  In this instance, I want to rename a batch files in a directory.  Such as changing:   37351001 - BlueSpotted.jpg 37351008 -SpangledEmporer _ 0133A.jpg 37353003 -Black-Bream_3481 .jpg 37353004   -35 - Yellowfin.jpgInstead having these files appear as: 37351001.jpg 37351008.jpg 37353003.jpg 37353004.jpgHowever, I don't have four files.  Wouldn't be worth my time...
Andrew Fletcher
  Using the Drupal Poll module and passing via RESTful API -  How do...
Andrew Fletcher
This code is from Drupal 9 back-end for a React front-end via REST API. Working...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
To get the X-CSRF token, first, you need to login as a member.  Follow the steps outlined under User options - login, logout and user details. Calling a query The query string is: {domain}/rest/session/token See the notes on set-up, for the staging and production URLs.  Using the current staging URL in the set-up screen, as an example of the query string using the following criteria Replacing the following variables: {domain} ~...
Andrew Fletcher
In retrieving an image, the primary element required is: File id or...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...