developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
11
results
Andrew Fletcher
•
Working on a decoupled React / Drupal 9 site.
Aim: Adjust the output of curated content for the Work Resources page. So the icon is displayed with a path. Enabling React developers to select whether to use the image or icon.
Tools
Drupal
9.4
React
Currently, the JSON output
{
"id": "content_reference",
"title": "Forms",
"summary": null,
"columns": "3",
"cta": {
"text": "View all",
"href": "https://www.google.com/"
},
"content": [
...
Andrew Fletcher
•
How to make React calls on a Drupal 9 backend site using the search...
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working...
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
•
Updating Realm and RealmSwift from 5.5.x to 10.0.0 brought in the following error
RealmSwift 10.1: framework not found realm-syncThe greatest clue I came across to solving this issue was on the Realm GitHub issues page for realm-sync error. However, updating Cocopods wasn't the only step required to correct this issue. The steps I took were:
Update Cocopods to v1.10.0 using
sudo gem install cocoapods
Deintegrate all of your pods
pod deintegrate
Install the pods from the...
Andrew Fletcher
•
Building a contact list using SwiftUI has many challenges.
One challenge is...
Andrew Fletcher
•
While I have posted an article about how to POST an image using REST in Drupal...
Andrew Fletcher
•
In Drupal 8.x hiding the subject line is a quick task.
In the admin area of your...
Andrew Fletcher
•
You have been working hard on getting comments being added (POST) through REST...
Andrew Fletcher
•
For others that have spent countless hours getting this to work and are struggling... in particular assigning the correct user to the comment - this is how I achieved the correct outcome.
The outline below is for usage via Postman and DHC (Restlec Client)... once working here then testing done and ready to apply to your app or however you are using this.
Set up
Set accept to hal+json
sample:
POST request
url: http://example.com/entity/comment?_format=hal_json
Authorization Type: Basic {then...