Every six months, the Drupal team get to release new features.
So what new features are available in 8.4?
The Pagerer module provides additional preset styles for Drupal standard pages and Views. It is a very simple module with styling options for everyone.
In this tutorial, you will learn how to add a pager to a View with Pagerer. Let's get started.
Over the last 15 years, Drupal has earned a reputation for being the most powerful open source content management system.
Yes, Drupal may be harder to learn some alternatives, but it compensates for this with its options and flexibility.
Does Drupal 8 continue this tradition? I recently needed to find out.
I've been using Drupal 7 for several years and was asked to use Drupal 8 for a new site. This post contains my thoughts after evaluating Drupal 8 for the first time.
You most likely already navigated across some sites, blogs or galleries, that present the content in an infinite scroll mode.
Such scrolling can easily be implemented with the Views Infinite Scroll contribution module in Drupal 8. No additional libraries or plugins required.
In this tutorial, we’re going to create a gallery of article teasers of all countries in the Americas. Let’s get started!
The "A Simple Timeline" module allows you to create a great looking, vertical timeline of Drupal entities.
This timeline could be used to tell the story of your company, organization or perhaps even real historical events.
For the purpose of this tutorial, I'm going to show you how to create a timeline showing all the Summer Olympic Games of the 21st century.
The Geolocation Field Module allows us to store geographical locations (e.g. addresses) as value pairs (latitude, longitude). These values can be rendered in a map with the help of a map marker.
Many map markers in a map are useful in a wide variety of cases, for example to show graphically different offices of a bank in a city or to show the cities/countries of a concert tour of your favorite band. The possibilities are endless.
In this tutorial we are going to learn how to show the markers in a map of four tourist attractions in New York City. We're going to use the Geolocation Field module and Views.
If you're getting started with Drupal 8, there are some key features you'll need to master.
In this tutorial, I'll show you how to build your first Drupal 8 slideshow.
One of the most common hurdles that Drupal beginners face is learning to navigate all the modules available on Drupal.org.
With over 38,000 modules, choosing which ones to use can be a daunting experience.
One answer is often to use a distribution.
Building your own e-commerce, intranet or a social networking site in Drupal can be intimidating. Imagine how much easier it would be if an expert had found all the best modules for your purpose and had combined them into one package. Imagine that you could download and install that package as easily as a normal copy of Drupal. That's what distributions can do for you.
There is one module that makes designing for Drupal 7 much, much easier: Theme Developer.
You can think of Theme Developer as a Drupal-specific version of Firebug or Chrome Developer Tools. Using Theme developer you can click on any element of your Drupal site and get a breakdown of how it was built.
Theme Developer has some downsides: it's not been updated in a while, and (like anything related to the Devel module) shouldn't be used on live sites. But, it can still be a useful tool for Drupal 7 themers.
In this tutorial, we'll show you how to add a "Printer-friendly version" button to your Drupal articles. This produces a super-clean version of your article, with any of the site design.
The main reason you'd want to do this is a courtesy for your readers. Many still print things they read online and you don't want them to waste that expensive printer ink just to print your logo and theme as well as the article.
Without this solution, you'd likely need to create a separate CSS file with styles specifically for the printed page. Fortunately, the "Printer, email and PDF versions" Drupal community module makes this much easier. It will automatically create a printer-friendly version of each article
Token is one of the 3 most popular modules in Drupal.
It allows you to use small placeholders to automatically complete tasks.
To take a simple example, if you put [site:name] on your site, it will be replaced by the actual name of your site. To take a more complicated example, you can use Token together with the Pathauto module to automatically create URL patterns for your whole site.
One of our members wanted to automatically fill in Drupal fields from another node.
It took a little experimentation, but we managed to make it work using the Token, Token Filter and Entity Reference modules.
This technique works for nodes, but it should allow you to automatically popular field using data from users, comment or any other entity.
Before you begin, follow these steps to enable tokens in Drupal fields. You must allow tokens inside fields before this tutorial will work.
Drupal 8 introduced an interesting new approach called "experimental modules".
These experimental modules are included in the Drupal core, and have inspired several questions from OSTraining members. What are these experimental modules, and is it safe to use then?
Yes, experimental modules are shipped with the Drupal 8 core, but they are not yet fully supported. Here's the official explanation:
Experimental modules allow core contributors to iterate quickly on functionality that may be supported in an upcoming minor release and receive feedback, without needing to conform to the rigorous requirements for production versions of Drupal core. Like other features, new experimental modules can only be added in minor releases, but unlike other features, they may change between patch releases while they are still experimental.
In this tutorial, I will explain how to use custom block types to create a Parallax effect in your Drupal 8 subtheme.
To follow along with these steps, it would help to have a good understanding of Drupal 8 theming. You can click here to take our Drupal 8 Theming Class.
To be able to follow this tutorial, you also need to install Bootstrap and create a subtheme from the CDN folder. You can follow our guide here in our earlier post.
Bootstrap is an incredibly popular option for creating Drupal themes.
Using the Bootstrap CDN allows you to quickly and flexibly add custom code that overrides the Bootstrap defaults. This is a great way to make your own Drupal theme based on Bootstrap.
In this tutorial, we will demonstrate how to create a Drupal 8 subtheme that uses the Bootstrap CDN.
In Drupal 7 to create custom displays, you would probably use Display Suite.
Drupal 8 just added a potential alternative to the Display Suite in the core experimental modules. The Field Layout and Layout Discovery modules will allow you to assign a layout to specific content types.
In this tutorial you will learn how to customise the display of content on a content type level with the Field Layout and Layout Discovery modules.
Websites will run into problems. Whether you're using Drupal or any other software, there will be problems at some point.
Drupal runs on PHP and when PHP has problems, it reports them to you.
However, often these errors will appear on your site and will be visible to visitors, as in the image below:
This has not been a fun couple of weeks in the Drupal community.
If you've missed the events, you can catch up with this list of links. There's dozens of articles in that list, plus hundreds more think-pieces, tweets and Reddit posts.
You don't need me to add to another opinion on what happened.
Instead, I'd like to try and situate this controversy into the broader flow of recent events.
Proposals to improve the Drupal contribution process have been heavily debated for the last few years.
Until now, the only thing everyone could agree on was the current process was broken.
Currently, many submitted modules are hung out to dry, because very few people have time or energy to fight through the submission process. You are lucky if you get your module accepted within 6 months. Many developers have waited much longer.
We were astonished to learn that our theme, called Breeze, was the first theme project to complete the approval process in 2016. And it was published in September! There were no new theme contributors for the vast majority of 2016.
Fortunately, big changes have come to the approval process for code on Drupal.org.
An OSTraining member asked how they could set up a Drupal 8 private file system.
In Drupal 7 you could do this from the configuration at Administrator > Configuration > Media > File System.
In Drupal 8, we have to set the private path manually.
An OSTraining member asked how to set up the Drupal 8 "Mollom" module. Mollom is a very useful way to protect Drupal from spammers invading your forms.
In this tutorial, I'll show you how to go through the process of its installation and setting up.
If you are using Drupal 7, we have the How to use the Mollom Module in Drupal 7 class that covers how to do this in detail.
Let's get started.
Many modules have been in flux during the early stages of Drupal 8's development.
Few modules have changed as much as Pathauto, which the vast majority of Drupal sites use to control their URLs.
In this tutorial, I'll show you the current way to use Pathauto with your Drupal 8 site.
Are you a Drupal 7 user who wants to migrate to Drupal 8.
You're not alone. "Can I rebuild my site in Drupal 8?" is a very common question in the Drupal community.
This tutorial will show you how to use the Upgrade Status module to see if you can rebuild your site in Drupal 8.
An OSTraining member asked how to make a gallery with Colorbox in Drupal 8.
We're going to walk you through the process of creating a beautiful Colorbox gallery with text overlaying the images.
One of our OSTraining members asked how best to make a tabbed view of content in Drupal 8. We already have a whole class on tabs in Drupal 7, but D8 works differently.
For this tutorial, I used 2 content types: "Article" and "News". We are going to show the Articles in one tab, and the News in a second tab.
In Drupal 8, you can make tabs without using any extra modules at all.
As a tip, I used the Devel module to create some dummy content for this exercise. You don't have to do this, but Devel always make it easy to test content-heavy tasks.
One of the most common questions we get at Drupal beginner classes is, "How can I tell if a site is built in Drupal?"
We get that question because it's just not possible to know the answer without a few tips and tricks.
If you look at a website such as WhiteHouse.gov, there is no way of telling if it's built Drupal. The design of a site is completely independent from the platform it uses.
We're going to give you 5 ways to tell if a site is built in Drupal. Not all of these suggestions will work on all Drupal sites, but taken together they should give you a clear answer.