Core

How to use Media Entity asset as a background image

Submitted by drupalviking on Wed, 09/13/2017 - 14:33

So, I have been using the new Media Entity module, along with some of the other media modules on some websites, and generally I like it. I find it awesome to be able to create different Entity Browsers, based on tagging, so if I'm adding hero images to my Hero Image block, my entity browser can have a special view.

In order to use the Hero image from my block as a background image, I had to Google a little. Hence my post, I wanted to document what I did, if for nothing else, my own reference. So here we go.

Media

Submitted by drupalviking on Thu, 08/03/2017 - 09:58

Handling media in Drupal has been … let’s just admit it .... horrible. Even in Drupal 7, the Media module didn’t really handle media very well. The only module who came close was Scald, but it was a cumbersome module to work with and required quite a skillset to install and configure.

My first impression on Drupal 8

Submitted by drupalviking on Thu, 08/03/2017 - 09:31

So, Drupal 8 is the new kid on the block. And whoa, is that the most popular person on the prom! The three major things (and there are hundreds more) that I like about D8 are the fact that you can (and should!) control all Drupal downloads with Composer.  Everything else is just crazy. And the other two things are Configuration Management and Drupal Console.

Fatal error: views_plugin_display::destroy()

Submitted by drupalviking on Tue, 11/03/2015 - 08:49

Sometimes, when I move databases from production to my developer machines, the website will not come up, due to cache-ing.  And clear cache doesn't work either, the error is a huge stack trace error message beginning with:  Fatal error: views_plugin_display::destroy()  

Luckilly there is a easy way to fix it, just invalidate the cache with drush:  drush @site.alias php-eval "views_invalidate_cache();" and your error goes away.  And your website comes up too :-)