What view modes are and how to modify hidden view modes

Description

So far we've been building views with fields. But, with something called a "view mode," we can capture the work done to lay out and modify the display of fields and re-use it across multiple views. Here we dive into view modes and demonstrate how to reveal view modes that cannot be modified by default.

Transcript

At this point our blog looks right in line with our wire frame, so now we'll move onto the blog listing page, which we'll do with the view. This time, though, instead of using Fields, we're going to use something called a view mode. So let's go to Structure, Views, Add new view.

We'll call this Blog. We can just show all content of type blog entry. We're going to sort by newest first, and let's create a page.

The page title, let's open up our wire frame, is going to be MagnifAscent Blog. Okay, we'll leave the path as is, and for page display settings, instead of selecting Fields here, we're going to leave it at Teasers. We'll leave it at 10 items to display and use a pager, we can change those later, and we'll click save and edit.

If we scroll down, what we'll see is kind of a compressed version of our content. This is actually pretty close to what we want in our wire frame here. So we want the title with a link to it, we got that.

We want the submitted by, though we wanna customize it a bit. We want a bit of the content, and then we want the images. The links here look like pretty much what we want, just in a different place.

So this is called a Teaser, and a Teaser is a view mode. A view mode is just a way of presenting the fields of a content type in a unique way. One view mode, the default or full view mode, is what we see when we go to a blog page.

When you have an active membership, you will be able to see your progress here.

Skill focus: Site BuildingSkill level: Beginner - Intermediate

If you're looking to get started with Drupal 8, this is a great place to begin. In this series we build a practical Drupal 8 site from start to finish and get immersed in the most essential techniques, terminology and tools needed for both professional and hobbyist site builders. No matter how you work with Drupal 8 - as a site builder, programmer, front end developer or project manager - what you learn here will provide a solid foundation.

We cover a lot of material in this series, including these key points:

How to structure content and work with comments

How to evaluate, install and configure modules

How to use views to display lists of content

How to create relationships between content and use them in content lists

How to improve performance and security

How to work with blocks and structure custom block types

How to work with taxonomy, paths, and much, much more

Who this collection is for

This video collection is intended for those who are completely new to Drupal, or for those that want to make sure that they have a solid foundation before moving on to more advanced projects. We assume you know nothing about Drupal, and lead you from start to finish through a practical project.

It looks like there might be an issue playing videos in this browser. We're working on better cross-brower experience, but in the meantime please try the latest Chrome or Firefox browsers. Or, you may be able to watch the video directly without progress tracking or transcript: