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
42
results
Andrew Fletcher
•
If you have upgraded Ionic to 5 or 6 you will have experienced that the padding attribute is not working anymore.
<ion-content padding *ngIf="loaded" color="medium">Use of attributes was deprecated in Ionic v4. If you would have noticed in developers console, Ionic 4 was presenting warnings of using these attributes. So post Ionic 4, these attributes were transitioned to CSS classes.
Now use these 'classes' as follows
<ion-content class="ion-padding" *ngIf="loaded"...
Andrew Fletcher
•
How do you get the version of ionic framework?
ionic versionor
ionic -vThe...
Andrew Fletcher
•
I recently received an ionic app that hasn't been updated for quite some time....
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
•
Working in Laravel, I needed to loop through an array and know whether the...
Andrew Fletcher
•
Images
For some time, when looking for images online for your app or site I have been going to Unsplash. As I come across more image sites that are noteworthy they will be added to this list.
Unsplash (https://unsplash.com) – is an amazing resource for beautiful, high-resolution and free photos
Moose (https://photos.icons8.com) – library of royalty free images and stock photos for personal and commercial use
Prexel (https://www.pexels.com) – Free stock...
Andrew Fletcher
•
Adding an image via RESTUI can be done in a snap... once you know how! I...