Modules

How the hell do I push data from Drupal into Javascripts (Drupal 7)

Submitted by drupalviking on Wed, 03/07/2018 - 12:13

So here was my scenario:

I was creating an edit form for node type for a customer. When the node was originally submitted, the user could choose a location from a map, and the coordinates were saved in the node. And now, when a registered user is editing the node, he needs to see the map with the coordinates in place.

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.