- Propulsé par
- WordPress
-
Tour de Bretagne 2026
C’était un voyage que je voulais faire depuis un moment : un road-trip autour de la Bretagne ! J’ai vu maintes fois de belles images de cette région, et il était temps que j’aille voir de mes propres yeux ce territoire riche en histoire et en art de vivre. Ce tour de Bretagne s’est décidé quelques semaines…
-
Corriger les dates de création, modification, et autres métadonnées EXIF avec exiftool
Il s’agit d’un petit article pour montrer les commandes nécessaires à la correction de métadonnées de date avec exiftool. C’est particulièrement intéressant si vous avez téléchargé des fichiers depuis Google Photos, car ce dernier ne définit pas les bonnes métadonnées sur les fichiers. En effet, on se retrouve avec la date de l’export pour la…
-
[Drupal] Variable de hauteur de barre d’outils d’administration
Variable CSS pour la hauteur de la barre d’outils d’administration : –drupal-displace-offset-top Cette variable se met à jour automatiquement grâce au script JS displace.js intégré nativement dans Drupal. On pourra par exemple utiliser cette valeur pour décaler des éléments pour les éléments ancrés qu’on accède grâce au fragment d’URL (le dièse en fin d’URL). Par…
-
[Drupal] Perfect views block configuration for multilingual node support
Objectives We want to add on a node page layout a block which uses a field from the currently rendered content (node). We want this block to be translated the same as the currently rendered entity. As a anonymous user, we want it to respect the published settings of the currently rendered entity. As an…
-
[Drupal] Custom scrollbars with Overlay Scrollbars library
The road to custom scrollbars Reminiscing. I am currently working on a website for a video game reviews project I have had with an old friend of mine (FuuDoh). Obviously, I have switched to Drupal to get a result quicker than what I would get with the PHP only solution I have been working on…
-
[Drupal] Change CKEditor behaviour for line breaks (br or p)
Here is a little code snippet to be added in a .module file. /** * Implements hook_editor_js_settings_alter(). * * {@inheritdoc} */ function MODULE_editor_js_settings_alter(array &$settings) { foreach ($settings[‘editor’][‘formats’] as $name => $value) { // Use instead of on enter. // See: https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR.html#property-ENTER_BR. // CKEditor natively converts double into on rendering. $settings[‘editor’][‘formats’][$name][‘editorSettings’][‘enterMode’] = ‘2’; } } Additional…
-
[Drupal] Make the Search API Page search block appear in Bootstrap markup
When using Search API Page, I needed to theme the search form in the bootstrap structure. The cleanest answer I have found is to add some variables to trigger the bootstrap overrides on the search form. /** * Implements hook_form_FORM_ID_alter(). */ function MYMODULE_form_search_api_page_block_form_alter(&$form, FormStateInterface $form_state, $form_id) { // We need this to make our search_api_page_block_form…
-
[Drupal] VM + XDebug + Netbeans
Hey! Long time no see! Heehee. I am just dropping a note here about the basic steps of how to install XDebug for a specific setup. Here is my configuration: host: OS: Windows 7 64 bits IP: 192.168.0.3 IDE: Netbeans 8.2 guest: OS: Debian Jessie 64 bits in VirtualBox IP: 192.168.0.4 (bridged network in VirtualBox…
-
[Drupal] Use admin_block and admin_block_content templates
This article is about the default admin_page, admin_block and admin_block_content templates which serves as the base of the content display on some system configuration pages such as the one on this image: The code
-
Replace image URLs in WordPress posts from http to https
I just switched my website to https for testing purpose. But changing the website’s URL to https:// is not sufficient to enable a fully secure browsing experience, as images in posts are still loaded from http://. Or more precisely, most modern browsers (FF or Opera for instance) are now clever enough to guess that the…