Skip to main content
35
results
Andrew Fletcher
For an introduction to setting up RESTful hal+json refer to the set-up documentation.  This article is about retrieving vocabulary lists that are used in many of the requests such as: Challenges: Activate type {activate_time); Distance marker {distance_marker}; Status {challenge_status} Notifications: Audience {notification_audience}; Status {notification_status}; Type {notification_types} Rivals: Status {notification_types} The notation above is indicated as vocabulary...
Andrew Fletcher
The user API, was originally created under the General...
Andrew Fletcher
The development version of the app database is held on the staging site....
Andrew Fletcher
The user parameters provides details about a specific user based...
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do...
Andrew Fletcher
Having access to a site’s URL in your templates can come in handy for many different use cases, such as determining if your on the admin/people page as apposed to admin/reports/dblog or admin/content.  These three pages might seem to bear on common relationship, however there is at least one.  Users. I edited the user in the admin/people page so rather than showing just username, know shows: Firstname Lastname Email Username However, in making this change I discovered that when on...
Andrew Fletcher
I want to create a content type that has a paragraph.  Easy enough. What...
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 current loop was odd or even row.  To do this add the expression to your Twig file: {% set direction = loop.index0 is odd ? 'left' : 'right' %}In the call above, the variable direction is set to either left or right depending on the value of the position of the loop row (loop.index0).  I then used the left or right value in a div class adding to a series of tailwind css definitions.  Such...
Andrew Fletcher
If you are receiving the following 403 errors: "message": "The used...
Andrew Fletcher
Adding an image via RESTUI can be done in a snap... once you know how!  I...
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......