Skip to main content
428
results
Andrew Fletcher
If you are like me, almost every view I have will have this filter.  So I regularly have the need to set a contextual filter programmatically.  However, some won't and will have other contextual filters instead. You can pass through the $view object the contextual filter params using the setArguments() method.  Say you want to pass three node nids to the view to filter the results contextually: $view->setArguments(['324+613+87']);  Continuing this theme, see the...
Andrew Fletcher
Have you come across the following Drupal error message: Mismatched entity...
Andrew Fletcher
Working on a decoupled React / Drupal 9 site. Aim: Adjust the output of curated...
Andrew Fletcher
How to make React calls on a Drupal 9 backend site using the search...
Andrew Fletcher
In this instance, I'll check the beginning of the string.  I want to focus...
Andrew Fletcher
Trying to have a chat recently, and Microsoft Teams would not open on MAC OS.  Sometimes it would open without issue.  But today, no play. The email comes through with no issue.  Opens in Safari with no issue.  But the link to open in Microsoft Teams, goes nowhere. Below are the progressive steps that I took to resolve this issue (note that this could take multiple solutions - let's see):   Solution 1: delete cache How to delete the cache of Microsoft Teams on...
Andrew Fletcher
 ERROR Error: Uncaught (in promise): TypeError: undefined is not an object...
Andrew Fletcher
When attempting to do a git push, are you getting the following...
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 documentation.  Also see the Query - user screen. Login a member POST: {domain}/user/login?_format=hal_json Content-type: application/hal_json Accept: application/hal+json { "name": "username", "pass": "password" }Example: { "name": "jacque", "pass": "nOtmYp1ssWorD" }Example response { "current_user": { "uid": "200", "name": "jacque" }, "csrf_token":...
Andrew Fletcher
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
How do you generate a .pem file from an existing .ppk key? Is putty on your...
Andrew Fletcher
To get the X-CSRF token, first, you need to login as a member.  Follow the...