Drupal 8 Front-End Architecture

I recently read Front-End Architecture for Design Systems by Micah Godbolt (BK1). It is a fantastic evaluation of front-end architecture and strategy. The book isn’t specifically for Drupal developers, but the concepts laid out in the book are relevant to all front-end developers and they are easily applicable to Drupal 8 projects. In this post, I want to build a couple of components and discuss different front-end architecture approaches for Drupal 8 projects, specifically using the concepts in Godbolt’s book.

Read More

MEAN Stack Class and Experience

I took a MEAN stack course from Geekwise Academy this September and October. I’ve been meaning to document the experience, but I haven’t had/made time yet.

Read More

Drupal 8 assets, libraries, and tracking assets

There are many different ways to include assets in Drupal 8, and there were probably just as many or more ways in Drupal 7, but the recommended method in Drupal 8 is to use your theme’s theme.libraries.yml file. I’m going to explain a method that I have been using to include css and js libraries and how we get them into version control. This is the best method, for our use case(s), that I have discovered so far, but I’m sure there are many other ways and I would be very excited to hear anyone’s opinions or suggestions.

Read More

Vim Mappings, converting non-HTML to HTML quickly

At the university that I currently work at, one of the Webteam’s responsibilities is managing the content of many of the sites we develop and maintain. This can sometimes turn into a huge time sink since requests are constantly streaming in. We have a student worker that can handle most of these tasks, but there are occasionally content tasks that require a better understanding of Drupal or are simply a waste of her time.

Read More

Non-admin roles adding/editing content using admin theme

I ran into a recent surprise while working with some content editors on an academic catalog website. I sat down with them to walk through some issues they experienced with speciic content editing tasks. To my surprise, when they went into the Edit view, ex. /node/1/edit, the university theme was still being used instead of the admin theme (I think I was using Seven or Admininal). I was pretty sure that I clicked the checkbox to use the admin theme on content editing pages on the Admin > Appearance page. Let me paste a screenshot below.

Read More

Drupal Features, Deployment Module, and Drush Aliases

Features allows you to bundle entities, and their configurations, into a feature module that is written to code. So, what is so great about that? Can’t you accomplish the same functionality by building out your views, content types, etc. through the Drupal admin UI. Yes, you can, but all of the entities and configuration will be saved in the database, as opposed to in code. Saving your entities and configuration to code is an immense benefit, if not necessary, for Drupal sites that are deployed across multiple environments, and even more if there are multiple developers working on the site.

Read More

Drupal 8, hook_form_alter()

I am developing a Drupal 8 site right to manage scholarships and scholarship applications at the university. I wanted to add a bunch of custom fields to User and group them with the field_group module, but field_group generated an error that caused White Screen of Death (WSOD) upon adding a field group. I reported the error to the module maintainer, but he seemed to denounce the possibility that it generated an error in his response to me.

Read More