Blog
How to: install an existing Drupal site on Lando
This tutorial explains how to install an existing Drupal 9 website locally with Lando.
Blog
A list of free resources for creators
Here is a list of free software resources to use as a creator!
Blog
Tutorial: how to do an excel download of objects in Typescript
I was doing this project with a little excel download in typescript, and figured it would be great to share it.
Blog
How to fix error upgrading to Angular 13: unhandled exception occurred: Cannot find module 'webpack'
I got this error upgrading from Angular 11 to Angular 13. This is the fix.
Blog
How to know if a user is logged in in page.html.twig in Drupal
This is quite an easy one. You get the following variables available in page.html.twig:
Blog
How to get entity reference value and link to it in a paragraph
I had this use case where I had to show a label and link to another content type from within my paragraph. Because the theming was specific, I had to get the label and link in twig
Blog
How to: padding left and right in Bootstrap 5
Bootstrap 5 is quite a bit change in comparison with Boostrap 4. Here some snippets to do padding.
Blog
How to do a for loop in Twig PHP
This is the way to do a "for" loop. We are going to loop over an array of Node objects of type 'sector'
Blog
How to fix error TS7053: Element implicitly has an 'any' type because expression of type 'can't be used to index type '{}'
I had the following problem in TypeScript: I had to add an object with an array and key inside another object:
Blog
How to loop over config file values in Drupal
I had this use case in my theme, where I wanted to expose a bunch of settings to my page.html.twig. Typical things would be social media links. Here is how I looped over config file values, preventing me to write a lot of lines: