Herzlich Willkommen ツ

Before our modifications to the IEF table

Snippet: Drupal 8 Commerce: Show SKU in product variation inline entity form table

23.10.2018 - 08:27

Today I'd like to share a little snippet with you on how to add or remove fields from the inline entity form line items table in a product edit form.

By default that inline entity form table contains

  • Weight
  • Product variation title
  • Price
  • Status
  • Operations

What we'd like to do in our example is to

Use (jquery.)photoswipe as lightbox etc. alternative with link fallback

11.10.2018 - 08:48

Today I'd like to share a very simple trick which seems a bit underrepresentated in the documentation of jquery.photoswipe (built on Photoswipe): How to simply provide a photoswipe gallery function using the following class based markup:

Open Drupal 8 Webform in Modal

24.09.2018 - 09:46

Creating a webform modal is quite simple and straight forward in Drupal 8.

We only need the Webform module and some classes for the modal opening button:

  1. Download and install https://www.drupal.org/project/webform
  2. Create a webform

JTL Artikel pro Seite Limit 100 Maximum übersteuern (Suche / Kategorien)

13.09.2018 - 17:54

Heute ein kleiner Tipp für Anwender von JTL-Shop 3 und JTL-Shop 4:

Windows Explorer: Nach runden Klammern suchen in Dateinamen

29.08.2018 - 14:43

Heute hatte ich das (eigentlich einfache) Problem, dass ich in einem Ordner im Windows Explorer alle Dateien die auf (1).jpg endeten löschen wollte (unerwünschte Duplikate).

Leider musste ich feststellen, dass die Suche nach

  • (1)
  • *(*)*
  • (1).jpg
  • usw.

Drupal 8: Load current entity from controller dynamically *updated*

29.08.2018 - 11:08

Today I'd like to discuss a little Drupal 8 snippet to dynamically load an entity from the controller by the current path.

This acts a bit like a Drupal 8 replacement for Drupal 7's menu_get_object().

Use case / example:

Drupal 8 Webform: Prepopulate entity reference (select, radio, ...) with current entitiy / node ID via tokens

03.08.2018 - 10:13

Several times in the last months we had the requirement to prepopulate a Drupal 8 webform with a parent entity ID from the URL. For example we had forms to register for events which we embedded on the node page as paragraphs or blocks and wanted to set an entity reference field to the node ID programmatically.

Lokale Dateisystem-Pfade / Netzwerkpfade aus dem Browser aufrufen

27.07.2018 - 11:16

Heute eine kurze Notiz, falls ihr in Eurem Intranet auch einmal die Anforderung habt, lokale Dateipfade via Browser zu öffnen.

Beispiel: Man möchte ein Verzeichnis im Intranet mittels Browseranwendung auslesen und es ermöglichen auf die Datei, z. B. \\\ordner\datei.txt mittels Dateiexplorer zuzugreifen.

VSCode (Visual Studio code) mark dollar sign $ on double click

24.07.2018 - 18:20

Visual Studio Code is my new IDE love. It's simple, lightweight but brings great functionality.

One little problem was that when double-clicking a variable with a dollar-sighn ("$") (for example in PHP or JavaScript) not the whole $variable was marked, but only the text without the $.

Drupal 8 views set exposed filter (default) programatically with auto-submit

27.06.2018 - 17:00

Setting a dynamic views exposed filter can be done via hook_form_FORM_ID_alter() regularly if it's just a prepopulation of the views exposed filter form.

But if you wish to immediately run the filters using better_exposed_filters auto-submit when the view is loaded you have to use hook hook_views_pre_build(). Otherwise setting the #default_value is just too late.

Use the following code:

Inhalt abgleichen