A few weeks ago, I introduced you to the research portion of our work around the Drupal experience manager. This week, I will show you the work my team and I did to redesign the visual elements from Drupal 8’s basic setup, including type, color, components, and icons.
Spam is still a thing? If you run a website with a contact form it is. We review the challenges and some approaches for mitigating spam submissions on websites generally, and in a Drupal context specifically.
If you've ever wanted to use Angular for part of a Drupal project, you probably know that a quick google search is going to return all kinds of results about using Angular as a frontend for a detached, headless Drupal backend. But that's not always what you want. You might have an existing site that could be improved by a small scale Angular based component. Or maybe you're wary of the SEO issues that could arise from having an SPA.
Drupal 7 before 7.32 is vulnerable to an important security flaw. If you are responsible for Drupal installations, this is not one you should wait to get around to. All sites hosted by Kilpatrick Design are patched and secure.
By default, Drupal 8 comes optimized for performance. If you've use the standard install profile, you might find that it's difficult to develop or debug changes to the way an entity is displayed. I spent an hour or so last night trying to figure out why my code in
hook_node_view as behaving strangely. Code would run once, and then not again, and if I made changes they wouldn't show up. Very strange!
Drupal 8 does away with
drupal_add_js (see the change record for more info). In its place, you'll need to use
#attached on render arrays. While this seems pretty straightforward when adding css stored in files, you might question how to attach inline CSS or JS. Here's an example:
I write this in the Austin airport as we wait for our flight home from DrupalCon 2014. It's been a great trip, we've learned tons and definitely got very excited about Drupal 8. We also managed to expose Wendy to an insane quantity of nerds, and I got my first core commit at the Friday sprints!!
There are a few articles online about how to write simpletest tests for Drupal, but most of them assume you're testing something very simple, and almost none of the examples deal with anything more complicated than a few textfields. So here are some very specific tips on non-obvious things you may want to test.
When working with clients before starting a new project, we often discuss a familiar short list of content management systems. We're big fans of Drupal here at Kilpatrick Design (for reasons I'll outline below), but considering how often we have this conversation I thought it'd be helpful to us, to potential clients, and to anyone else out there who has been evaluating content management options, to discuss some of the details that drive these technology decisions.
Major version changes of software are always scary, but according to http://www.drupal7releaseparty.org/, at least 234 people worldwide are excited enough to throw a party for Drupal 7's release, which is tomorrow. Drupal 7 has been in development for over two years, and is the product of over 1000 different contributors.