Skip to main content

All Articles

A list of useful Drupal modules

Image Thumb

Here is a quick list of modules that I find very useful. If you are a drupal developer, I encourage you to look into each of them and consider using them.

Keycloak: How to override the password reset emails

Image Thumb

In order to override the text of the password reset emails in Keycloak, you want to do the following.

Make your own copy of the default themes. These can currently be found at: https://github.com/Halazv2/keycloak-theme/tree/master/themes/base/email 

Then, make changes to the theme as appropriate. There are several themes: the login theme stores the styling of the login pages. But the email theme contains the wording of the emails. 

Default Drupal file attachment types

I have the following list of extensions that I usually permit in drupal attachments:

  txt pdf doc docx html csv xlsx xlsm sh json
  cer pem pub key
  png jpg jpeg gif
  mkv sfv avi mp3 mp4 webm mov
  zip tar gz

An open letter to marvil07

Image Thumb

Hello,


I'll write english - hope that's okay.
 

Me and several other people would like drupal's vote_up_down to be ported to drupal 10. It's not that difficult, it's been done, here is my branch: https://github.com/wasya-co/vote_up_down

Converting mbox to maildir

From Mellowhost blog.

mbox and maildir both are popularly used techniques to store mails. The simple way to understand the difference is, mbox uses a single directory to store all mails while maildir would utilize a directory structure to store mails. Most of the cases, advance mail receiving techniques IMAP over POP3 uses these sort of folder based concept to provide enhancement in mail organizing.

[FIXED]: drush The specified database connection is not defined: default

Image Thumb

Fixing this took me years... I can't believe how long it took. The answers on stack overflow did not help.

The error was due to a mismatching php configuration for running in the shell ( /etc/php/8.1/cli/php.ini ) and in apache (/etc/php/8.1/apache2/php.ini ).

Specifically, I had to enable short tags for the shell: