From the course: Drupal 9 Essential Training: 5 Layout

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Exposing filters for visitor interaction

Exposing filters for visitor interaction - Drupal Tutorial

From the course: Drupal 9 Essential Training: 5 Layout

Start my 1-month free trial

Exposing filters for visitor interaction

- In this video, I want to accomplish two things in our latest news, view. One. I want to make the titles into an H3 tag. Which is a little tricky because they're actually in a table. And secondly, I want to expose the filter to our visitors, that says, "hey go ahead and choose between news and press releases." Alright, let's do that. Click on the pencil icon for the view. Click edit view. And let's take care of the title first. Click on the word content:title. Now with views, there's a little bit to learn here. If I click on style settings and customize the field HTML. You would think that changing this to an H3, would work and typically it does, but it doesn't in this particular theme. So there's a way around that. I'm going to uncheck that, and I'm going to click on rewrite results. And this allows us to override the output of this field with custom text. Put a check mark in there and I want it…

Contents