Use this simple snippet to embed a view in code and only display it if the view has at least one result (prevent rendering empty views markup):
Snippets
I created this issue and snippet as better entityreference.module autocomplete widget usability solution in: 2571107.do
Today I had the challenge to add some extra (programatically calculated) fields to show in commerce.module product display nodes. In our specific case it was a "base price" that should be shown additionally to calculated SALE prices.
If you'd like to separate your website areas by main menu first levels (for example colourize all areas in a different colour) a body class outputting the first level mlid may help you (otherwise you can for example use context.module or
Today I'd like to provide you with a little commerce.module snippet to determine the currently selected product variation (using commerce_product_reference.module) of a product display with several variations. I had to search hard for it so
Heute ein kleines Drupal Modul-Snippet zur Aktivierung der autom. Rechtschreibprüfung via Scayt im CKEditor unter Einsatz des wysiwyg.module inkl. Sprachumschaltung auf Deutsch für die Rechtschreibprüfung (Standard-Sprache)
Based on https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_h… https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_c… this simple JavaScript snippets turns strings into valid
Today I'd like to give you a little hint how to a execute a remote SSH drush command successfully for a connection defined in aliases.drushrc.php when the SSH port differs from default "22". This is for example the case on Hetzner Hosting
Dir hat dieser Beitrag Zeit und viele Nerven gespart?
Dann würde ich mich sehr über einen leckeren Kaffee freuen! Oder ein spannendes Tech-Buch aus meiner Wunschliste?