Herzlich Willkommen ツ

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'];
  4.  
  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]


Drupal 8 on-demand error display with disabled cache via URL Parameter

04.03.2019 - 13:35

Have you ever wanted to disable Drupal 8 cache and enable error reporting only for a specific page or to quickly debug a problem?
Here's a simple solution how to enable debugging and disable caching for a single call using a URL debug parameter


Drupal 7 / 8: Lightweight set / exchange domain specific front page (e.g. for landingpages)

21.02.2019 - 13:20

Would you like to create a Landingpage for a specific topic in Drupal 7 / 8 on a separate landingpage domain (https://www.my-landingpage-example123.com/) as specific frontpage without using complex modules like Domain Access or multisite?
Then here's the lighweight way to go for you!


Inhalt abgleichen