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
36
results
Andrew Fletcher
•
I want to create a content type that has a paragraph. Easy enough.
What happens when I want to extend this concept and have a paragraph within the first paragraph? Importantly, then display the second paragraph in a twig file.
How to create a content type that holds a paragraph within a paragraph and make it display in twig files?
First, I thought I would use kint() or dump() to review the output and generate the structure to the data directly in the twig file.
Given we...
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
•
Registering a user via REST is an important process particularly when the requests come from a mobile device.
In working through the process you might have come across error message like:
403 Forbidden : "Only anonymous users can register a user."
422 Unprocessable Entity : "A Password cannot be specified. It will be generated on login."So how did I get these and what to do?
First off, check the REST set up in the administration area of Drupal. Configure User and User registration...