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
Welcome to my Blog, happy reading! ツ
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
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
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
Ein typisches Problem im Umgang mit AJAX ist die (re-)Initialisierung von Scripts auf den nachträglich geladenen Inhalt. Im JTL-Shop 4 stößt man darauf beispielsweise auf Kategorieübersichten bei der Seitennavigation. Viele Systeme, viele
Short snippet to restore product variation assignments (references) in Drupal 8 Commerce after an SQL error has occured on product save, which left product variations orphaned. Fix all product variation relationships having no parent
Habt ihr in Shopware 5 auch das Problem, dass ein gekauftes Plugin im Pluginmanager trotzdem als Testversion / abgelaufen angezeigt wird? Das Plugin funktioniert zwar, aber beim Login ins Shopware Backend erscheint eine Meldung, die Euch
As heavily discucced in this years old issue: [#937442] there isn't a good solution or helper in Drupal core currently to change the schema of a custom field. Modules like field_collection dynamic_entity_reference (#51) address
Simple snippet to only output the first image of an imagefield in a view and show the rest of the gallery in the photoswipe overlay. Hint: Don't forget to add the photoswipe-gallery class on the field wrapper in views settings: http://cgit
Little Drupal 7 snippet for the image_link_formatter module (https://www.drupal.org/project/image_link_formatter) to add a fallback to lightbox in size large if no link is given. Should work the same with other fallbacks (colorbox, etc.)
This post saved you a lot of time and headache?
Then I'd be very happy about a delicious coffee! Or a helpful book from my wish list.