Neuen Kommentar schreiben

Tutorial: Drupal 8 Site Building preview - Less is more

(updated Oct 8- went from 14 contrib modules you don't need to 32! thanks to larowlan, klausi, webchick, swentel, gabor and wim leers for heads-up!)

Over the next couple of weeks, I’ll dig into the main Drupal 8 site building tasks and how they’ve been changed in the next version of Drupal. In today’s introduction, I want to give you some observations about the site building experience in Drupal 8. I’m starting in this post by pointing out what modules are GONE from core in Drupal 8- and what contrib modules you won’t need to install since that functionality is included in Drupal 8.

On October 23rd you can join me for a LIVE Tutorial: Sign up to Drupal 8 Preview- Live tutorial for Site Builders , Oct 23rd 1:00 PM EDT

All of the major site building tasks have been affected in some way.

  • All admin page configuration; front page control
  • Content types, fields, forms and display
  • Comments
  • Images
  • Text formats and WYSIWYG
  • Blocks
  • Multilingual site building
  • Configuration management(!)

However, if you're looking for the drastic differences you saw between Drupal 6 and 7, you'll be disappointed. It seems that the site building experience hasn't significantly changed.

The few key changes that have been made are wide-reaching. For example, the inclusion of “form modes” affects anything with fields. While these new abstractions offer flexibility, as an instructor, I know they might be potentially confusing - at first! That's why I'll be going into that in more detail in an upcoming post.
Form modes in Drupal 8

I’d say overall site building in Drupal 8 has some great improvements. From a simple point of view that there will be less to install! There are some modules removed from core, and many contrib modules replaced by new functionality in core. Let's see what's gone.

Less is more!

In our Drupal 7 Site Building course , we spend a significant chunk of time on “how to improve the content editing experience”, because we know that internal adoption can make or break the success of a new site. I was amazed to see much of that is being mooted by Drupal 8, as many of the configuration changes we teach developers are being baked right into the new version. I detailed some of those content editing improvements in my previous blog post (Content editing enhancements in Drupal 8.)

I think overall this means site building is greatly improved in Drupal 8; and you’ll be able to do much more “out of the box” without depending on as many custom modules. I’m just sort of agog thinking about what this means.

It’s funny because we emphasize how much has been added to the Drupal 8 core- when we’re not considering the implication: This removes lots of required contrib modules from a garden variety Drupal site! AND it ensures everyone is getting these excellent benefits.

Many of the most commonly used modules (or modules with similar functionality) have been included in Drupal 8. This means you don’t necessarily need Display Suite anymore, since you can add customized view modes. You don’t need the link module, or the basic date module, they’re in there. You don’t need BEAN module anymore since you can add fields to blocks. You don’t even need to throw in the Save Draft module, since they fixed that confusing publishing button. And of course Views is available right in Drupal core now.

It goes without saying that this has huge benefits for site builders, especially those new to Drupal. It’s been disheartening to meet people who’ve been using Drupal and didn’t know even Views existed.

What’s gone?

My Drupal 7 core modules folder at /root/modules shows 41 directories. My Drupal 8 core modules is moved to a nice tidy spot: /root/core/modules and it shows 61 directories. It’s safe to say there’s more added to core than removed.

Bye bye to these core site building modules!

I wouldn’t say we should mourn the loss of things removed from Drupal 8, but consider them reborn! For example, I think there’s excellent potential for a robust Blog module for Drupal- but it was stifled somewhat from growth. Some of these have been spun out into their own projects, or replaced.

  1. Blog, moved to contrib
  2. Dashboard module is now Homebox
  3. Open ID removed.
  4. Poll, moved to contrib
  5. PHP filter module; (I think people danced on its grave)
  6. Profile (was deprecated now, really gone!); Profile 2 still the likely successor Drupal 8 version here
  7. Trigger is gone. Now the contributed module Rules is the successor.
  8. Translation module removed, and it's now "Content translation" module and works basically the same way as Entity translation

Contrib modules you won’t need! Some were included, some were mooted.

Overall the changes in Drupal 8 imply that you will need fewer contributed modules to get most garden variety websites developed. I think this means there will be less chance for new people to miss tricks. Here's a list of popular modules from Drupal 7 contrib which are now no longer needed.

Some have been added, but most have been deprecated or are no longer needed as similar functionality is available. It may be however, that for advanced functionality you'll turn to the full modules. For example, Views Bulk Operations will offer additional actions.

  1. Admin views Turns administration pages, such as the content list into customizable Views.
  2. BEAN - Now blocks are entities, and you can add fields to them.
  3. Caption Filter module - You can now add captions to images that you insert inline!
  4. CKeditor and/or WYSIWYG flavors CKEditor included in Drupal core
  5. Date field - Date field included, but it won't have recurring dates in D8, so you will use the contrib module for that.
  6. Display Suite - Site builders can create custom view modes (beyond defaults such as full/teaser).
  7. Email - Now there is a simple email field!
  8. Entity view mode - Now you can create custom view modes on any entity.
  9. Entity reference - There is now a Reference field to link to other content dynamically.
  10. Features - You now longer need Features for configuration management, though it might still be useful for packaging up sets of functionality, which was Features original intended use.
  11. Fieldable Panel Panes Now you can add fields to blocks, this module isn't needed.
  12. Float filter You can float text around images
  13. Hidden field widgets - Ability for "hidden" and "value" form widgets for fields
  14. Insert - Now you can insert images inline.
  15. Link field - Link field included
  16. Module filter - You can search for a module easily. Now under "Extend".
  17. Picture
  18. and ....Breakpoints - I described the D7 solution for responsive images in a previous blog post. This allows you to configure resizing images based on the browser dimensions.
  19. Placeholder - Add text into fields to show users what to fill out. This disappears as soon as they start typing. Slick!
  20. RestWS Provides RESTful services to output over more than just HTTP.
  21. Services - Output more than just HTML. You can now integrate external applications with Drupal. Service callbacks may be used with multiple interfaces like REST, XMLRPC, JSON, JSON-RPC, SOAP, AMF, etc
  22. String overrides - (It's possible to do most of what String Overrides did, but Gabor notes it's not as "performant".)
  23. Telephone field - Telephone field included
  24. Transliteration - Now Drupal 8 turns accented characters (in machine names such as paths) into US-ASCII characters (universally displayable, unaccented characters)
  25. User picture field - Now the user picture is an image field handled the same as other image fields.
  26. Views - Site builders can add custom views, and now views is used for Admin pages.
  27. Views Bulk Operations (for most things) - Conduct operations on select rows in views.
  28. Webform - where used for multiple-field contact forms previously Now you can add fields to contact forms.
  29. AND the translation modules, including Localization update - fetch updated translations from
  30. Administration Language - Now you can see all administration pages in your preferred language.
  31. Localized Drupal Distribution Now you can install Drupal in a language other than English.
  32. Fallback language negotiation - Change the Default language without changing the default language by using a other language as fallback.

The major improvements to translation in Drupal 8 are a results of years of effort by an amazing team. That is why they've made the biggest contribution to this list. Anything to do with either the content translation approach (core & i18n module) or the entity translation approach (entity_translation) is now not needed. Check out this webinar on Multilingual Improvements in Drupal 8, August 2013, Gábor Hojtsy.

I hope you’re looking forward to really digging into Drupal 8 and seeing how things have changed- for the better. Here's some tips on keeping on top of the changes.

Keeping on top of changes

Downloading the latest version of Drupal 8 still gives you daily surprises. (Hello! Comments converted to fields committed last week!) It’s fun to keep track of progress.

Drupal 8 has brought about so many little changes you just want to hug. Some are even being back-ported to Drupal 7 so you don't have to wait.

I just want to show you this really quick: Now you see the dimensions of image styles e.g., "Style name (80x80)" as you use them. How nice is that? Seems kind of obvious you wonder why Drupal didn’t have it before. But yay! And yes, this has been backported for Drupal 7.23 now.

Image dimensions in Drupal 8

So here's some ways I keep on top of the changes:

Or just come back and read this series on Drupal 8 site building, and I’ll walk you through the changes in a live tutorial.

Sign up to a live Drupal 8 Site Building tutorial

Sign up to Drupal 8 Preview for Site Builders , Oct 23rd 1:00 PM EDT

See you then!

Plain text

  • Keine HTML-Tags erlaubt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • HTML - Zeilenumbrüche und Absätze werden automatisch erzeugt.

Filtered HTML

  • Use [acphone_sales], [acphone_sales_text], [acphone_support], [acphone_international], [acphone_devcloud], [acphone_extra1] and [acphone_extra2] as placeholders for Acquia phone numbers. Add class "acquia-phones-link" to wrapper element to make number a link.
  • To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also colour it based on syntax.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <h4> <h5> <h2> <img>
  • HTML - Zeilenumbrüche und Absätze werden automatisch erzeugt.
By submitting this form, you accept the Mollom privacy policy.