By Kevin, April 9th, 2017

On a recent project, we had taken a Pattern Lab based prototype and created a Drupal 8 theme from it. In order to track updates and stay independent of the work happening by the front end team, I added the Pattern Lab repo to the project as a git submodule.

This is a practical approach,...

By Kevin, February 16th, 2017

In Drupal, most breadcrumb generation and navigation is sufficient by basing it off of the menu hierarchy with the Menu Breadcrumb module.

This works great except in certain edge cases, such as nodes that do not have menu placement, and Views pages which may exist, but not have a set...

By Kevin, February 2nd, 2017

Just wanted to share a quick example of overriding a field output from Search API if the value isn’t exactly what you want.

In my case, I am indexing the URI of a node and have a design requirement to output it as a link in the result, but it has to contain the host and scheme (http://...

By Kevin, January 28th, 2017

Last week, I had to solve a problem where a prototyped form contained a button element and svg icon for the submit button on three search forms.

While you can change the type of a input from submit to button in Drupal 8, that does not change the tag the form...

By Kevin, January 27th, 2017

Today I had an excellent opportunity to put Drupal Console to work for me. I also wanted to show a colleague what was possible and how fast you can move with it.

I had a requirement to create a couple of simple forms that consist of a text field and a submit. It then should post to a URL...

Tags

By Kevin, January 13th, 2017

If you are theming an entity (in this case, node) and you want to display the created or changed date in a different format, you can use the following to do just that. In my case, I am creating a couple of view modes with their respective twig templates and need to show post dates in a few...

Tags

By Kevin, January 12th, 2017

So part of what I want to do this year is write a bit more, and start making more use out of zsh/terminal. While I do have a few books on the subject to help me get a deeper grasp on what is possible, I figured an easy way to start would be to think of common problems I have and apply solutions...

Tags

By Kevin, January 6th, 2017

I tend to do these things at the start of every year. Every year that I make them, they tend to get larger. Sometimes you make small goals, which is okay, but are you really challenging yourself by going after low hanging fruit? I don’t think so.

I thought about them… absent is “go to...

Tags

By Kevin, December 29th, 2016

This year, the Neato theme for Drupal 7 and 8 passed 700 installations.

It has mostly remained in the 650-750 range for a majority of the year. I had not said much to this point because install counts tend to fluctuate per commit or...