Herzlich Willkommen ツ

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!


Shopware 5 PLZ-Bereich (Umkreis) versandkostenfrei für ausgewählte Kategorien

11.02.2019 - 19:08


(IFNULL(us.zipcode,ub.zipcode) IS NOT NULL) AND (IFNULL(us.zipcode,ub.zipcode) IN ('32312', '32310', '12345'))
AND
MIN(SELECT 1 FROM s_articles_categories WHERE articleID=a.id AND categoryID IN (22,56)) AS erlaubtekategorie


Drupal 8: Override views row (views-view-fields.html.twig) in views style plugin

16.01.2019 - 15:59

In the last days I developed the ZURB Foundation Views integration module for Drupal 8. To match the markup required by foundation accordion we first had to write a views style plugin in our module.


Drupal 7 redirect to fieldable-panels-panes after admin_menu Update

16.01.2019 - 13:24

Today I'd like to share a nasty bug I ran into when updating a customer Drupal 7 CMS project. We updated several modules, one of them was admin_menu (7.x-3.0-rc5 > 7.x-3.0-rc6).
The website also used the "fieldable_panels_panes" module.


Drupal 8 Bug: The module standard does not exist. in Drupal\Core\Extension\ExtensionList->get()

15.01.2019 - 13:42

We just ran into the Drupal 8 CMS Error message:

Drupal 8 Bug: The module standard does not exist. in Drupal\Core\Extension\ExtensionList->get()


Shopware 5: Sonderliefergebiete / Inseln vom Versand ausschließen

07.01.2019 - 20:06

Für alle Shopware 5 Nutzer gibt es heute einen hilfreichen Linktipp zum Ausschluss von Inseln / Sonderliefergebieten von Sebastian Lenz: https://www.shopdoktor.com/shopware-dpd-inseln-von-versandart-ausschlies...


Inhalt abgleichen