Skip to main content
32
results
Andrew Fletcher
Run the NPX commands to update the app npm run build && npx cap syncRun app with live reload ionic cap run {platform} -l --externalReplace {platform} with Android or iOS depending on your environment as follows Android android iOS ios To open in Android ionic cap run android -l --externalYou'll be prompted to select a emulator (depending what you have loaded) ? Which device would you like to target? Pixel 3 API 31 (emulator) (Pixel_3_API_31) Pixel 5 API 27 (emulator)...
Andrew Fletcher
Approaches to resolving “Module not specified” Error in Android Studio When...
Andrew Fletcher
Working in Android Studio when attempting to run a project I had the following...
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...
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
A bug bear that I have had for a while with Drupal content is how come the...
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
How to apply a gradient tint over a background image? Set the background...
Andrew Fletcher
Working on formatting the date in Xcode, and you come across the situation where...
Andrew Fletcher
Adding a floating decimal point for n number of places is quite easy to achieve....
Andrew Fletcher
During the process of building the app, there are warnings about the code....