From the course: Drupal 9 Essential Training: 5 Layout

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Adding the news and press release view

Adding the news and press release view - Drupal Tutorial

From the course: Drupal 9 Essential Training: 5 Layout

Adding the news and press release view

- [Instructor] The next view we want to add is a listing of all of the most recent news in our Drupal website. So, head over to Structure, Views and Add View and let's call this, Latest News. We'll show content of type article because that's what we're using for our news. And we'll show the newest first. Once again, create a page. Once again, we'll leave it at an unformatted list of teasers. We'll use a pager. We'll create a menu link again under our main navigation and click Save and Edit. Scroll down and see your preview. And once again, our teaser mode with Drupal has created a summary text here, that's really a mess. So, we could change the teaser or we can just change this to show a set of fields. Let's do that instead. Click on Formatted List and choose Table. Click Apply and click Apply. By default, as soon as you change it to table, Drupal adds the title field to the fields area. So, now we have a…

Contents