Herzlich Willkommen ツ

Drupal CMS: Change user profile title & tab title

30.07.2019 - 12:16

Since I needed some time to find out how to change the user profile tabs title and page title, I'd like to share that information with you.

Drupal 7: Decorate / wrap existing form as separate form with individual path

03.07.2019 - 10:10

It's not an untypical situation: You'd like to use an existing Drupal CMS form as base for a custom form under a separate URL. In our example case we will decorate the Registration form "user_register_form" and create a separate registration form under a separate URL. This might be a custom alternative to modules like https://www.drupal.org/project/multiple_registration if they don't match your requirements.

Shopware 5 SEO Router (URLs) aus Freitextfeldern / Attributen überschreiben

Shopware 5 SEO Router (URLs) aus Freitextfeldern / Attributen überschreiben

22.05.2019 - 20:50

Heute hatte ich die kleine Herausforderung in Shopware 5 URL's per Freitextfeld-Attribut (z.B. attr20) SEO-URLs diverser Seitentypen manuell zu übersteuern.

Dies erfolgt über die Einstellungen > Grundeinstellungen > SEO/Router-Einstellungen.

Shopware Smarty Plugin URL im Template sauber erstellen mittels Controller (Seiten / Formulare / ...)

21.05.2019 - 12:43

Shopware 5 bietet mit einem entsprechenden Smarty Plugin eine gute und sichere Lösung zur URL-Generierung im Template an. Dazu wir die Smarty funktion "url" verwendet, der entsprechende Parameter übergeben werden.

Details dazu finden sich in der Shopware Dokumentation: https://developers.shopware.com/designers-guide/smarty-plugins/#url-plugin

Composer set memory_limit in bash

16.05.2019 - 12:41

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in ...

If you are running into a memory_limit when using composer, there are many ways to solve the problem. Finally I'm hoping for enhancements in composer to require less memory. But until that I've found a quick solution in bash:

Run jAnrufmonitor with OpenJDK on Windows 10

23.04.2019 - 09:46

Just a little hint, if you'd like to run jAnrufmonitor with OpenJDK and it complains it requires Java on start... simply use the RegEdit edit file offered here: https://www.janrufmonitor.de/warum-startet-janrufmonitor-nach-einem-upda...

OpenJDK Installer Open Source

23.04.2019 - 09:17

Eine kurze Randnotiz, falls ihr einen Installer für OpenJDK aufgrund der Oracle Lizenzänderung sucht: https://adoptopenjdk.net/ bietet .msi Installer für diverse Betriebssysteme und ist somit besonders benutzerfreundlich.

gtag.js Conversion Tracking in Drupal 7

How to track Google Ads conversions in Drupal (gtag.js) on specific pages

17.04.2019 - 17:20

My Drupal pro tip today only concerns Drupal 7 (sadly), because the tracking_code module is not available for Drupal 8 currently.

My little task was to add a Google Ads conversion tracking on a customer page. Google Ads uses gtag.js.

Drupal 8 Media: Format file size output / display

04.04.2019 - 12:19

If you'd like to output Drupal 8 Media file size (mapper field) output in human-readable format, this snippet may help you!

in MYTHEME.theme file:

  1. function MYTHEME_preprocess_media(&$variables) {
  2.   /** @var \Drupal\media_entity\MediaInterface $media */
  3.   $media = $variables['elements']['#media'];
  5.   if ($media->bundle() == 'document' && !empty($media-> field_document_size)) {

Drupal 8 Backup-Migrate running into out-of-memory Error? A large key_value_expire table may be the cause!

03.04.2019 - 11:32

On a customer page we were running into problems with backup_migrate aborting with out of memory errors. In contrast to other similar websites we found out that a bug ([#2931611]) in the honeypot module caused the key_value_expire database table to grow up to 2,3 GB of (useless) data.
This bug in detail is being targeted in this issue: [#2997609]

Inhalt abgleichen