Skip to main content
26
results
Andrew Fletcher
In Xcode attempting to build or run an app, I receiving a framework error. Software / package Version Xcode 13.2.1 @capacitor/cli 3.4.3 @capacitor/haptics 1.1.4 ionic 6 @angular/core 13.3.4   Previously, I had added via npm the following npm i @capacitor/haptics  Whilst I had added the haptics package, then built and synchronised the code using npm run build npx cap sync npx cap copy ios npx cap open ios  How to fix this issue This error is a result of my...
Andrew Fletcher
Working through an app project I inherited using Ionic, Angular and ngx-leaflet...
Andrew Fletcher
While loading an ionic project, in Xcode when performing a run routine I had the...
Andrew Fletcher
Need to know how run updates for Capacitor? Updating Capacitor Update Capacitor...
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...